Mini Pro + DHT12 + NRF24L01+ SMD



  • Hi
    I ordered the new DHT12 and the NRF24L01+ SMD and tried to build an Humidity sensor but it istn't working..
    i'm not a programmer so i don't no where the problem is...

    i testet the DHT12 with this code and it works...

    //Test library for DHT12 sensors.
    //Write by Bobadas.
    
    #include <DHT12.h>
    #include <Wire.h>     //The DHT12 uses I2C comunication.
    DHT12 dht12;          //Preset scale CELSIUS and ID 0x5c.
    /*
    For configuration library:
    DHT12 dht12("Scale temperature","ID device for I2C");
    On "Scale temperature" you can select the preset scale:
    CELSIUS, FAHRENHEIT or KELVIN.
    And on "ID device", you can put ID sensor, on DHT12
    normally is 0x5c.
    Examples:
      DHT12 dht12;
    The preset scale is CELSIUS and ID is 0x5c.
      DHT12 dht12(KELVIN);
    the preset scale is KELVIN and ID is 0x5c.
      DHT12 dht12(FAHRENHEIT,0x53);
    The preset scale is FAHRENHEIT and ID is 0x53.
    */
    
    void setup() {
      Wire.begin();
      Serial.begin(9600);
      Serial.println("Prueba de libreria DHT12:");
    }
    
    void loop() {
      Serial.print("Temperatura: ");
      Serial.print(dht12.readTemperature());
    //Read temperature with preset scale.
      Serial.print("*C  Humedad: ");
      Serial.print(dht12.readHumidity());
    //Read humidity.
      Serial.println("%RH");
      Serial.print("Temperatura: ");
      Serial.print(dht12.readTemperature(FAHRENHEIT));
    //Read temperature as forced fahrenheit.
      Serial.println("*F");
      Serial.print("Temperatura: ");
      Serial.print(dht12.readTemperature(KELVIN));
    //Read termperature as forced kelvin.
      Serial.println("*K");
    
      delay(5000);
    }
    
    /*
    if it delivers the values 0.01, 0.02 or 0.03, you are
    giving us the error that has had in reading:
    0.01: DHT12 is not connected or the ID does not exist.
    0.02: There have been a problem with communication.
    0.03: Checksum error (bad connections, check the wires). 
    */
    

    and i wired the nrf like in the tutorial but i think there is something wrong... i used this for the wireing
    alt text

    and i used the 3,3V regulator..

    then i changed the code like this:

    /*
     *******************************
     *
     * REVISION HISTORY
     * Version 1.0: Michael Berger
     * Version 1.1 - 2017-03-31: Converted to MySensors v2.0 and added various improvements - Torben Woltjen (mozzbozz)
     * 
     * DESCRIPTION
     * This sketch provides an example of how to implement a humidity/temperature
     * sensor using a DHT12
     *  
     * For more information, please visit:
     * http://www.mysensors.org/build/humidity
     * 
     */
    
    // Enable debug prints
    #define MY_DEBUG
    
    // Enable and select radio type attached 
    #define MY_RADIO_NRF24
    
    
    #include <SPI.h>
    #include <MySensors.h>  
    #include <DHT12.h>
    #include <Wire.h>     //The DHT12 uses I2C comunication.
    DHT12 dht12;          //Preset scale CELSIUS and ID 0x5c.
    
    
    // Sleep time between sensor updates (in milliseconds)
    // Must be >1000ms for DHT22 and >2000ms for DHT11
    static const uint64_t UPDATE_INTERVAL = 60000;
    
    // Force sending an update of the temperature after n sensor reads, so a controller showing the
    // timestamp of the last update doesn't show something like 3 hours in the unlikely case, that
    // the value didn't change since;
    // i.e. the sensor would force sending an update every UPDATE_INTERVAL*FORCE_UPDATE_N_READS [ms]
    static const uint8_t FORCE_UPDATE_N_READS = 10;
    
    #define CHILD_ID_HUM 0
    #define CHILD_ID_TEMP 1
    
    float lastTemp;
    float lastHum;
    uint8_t nNoUpdatesTemp;
    uint8_t nNoUpdatesHum;
    bool metric = true;
    
    MyMessage msgHum(CHILD_ID_HUM, V_HUM);
    MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP);
    
    
    void presentation()  
    { 
      // Send the sketch version information to the gateway
      sendSketchInfo("TemperatureAndHumidity", "1.1");
    
      // Register all sensors to gw (they will be created as child devices)
      present(CHILD_ID_HUM, S_HUM);
      present(CHILD_ID_TEMP, S_TEMP);
    
      metric = getControllerConfig().isMetric;
    }
    
    
    void setup()
    {
      Wire.begin();
      Serial.begin(9600);
      Serial.println("Prueba de libreria DHT12:");
    }
    
    
    void loop()      
    {  
      // Force reading sensor, so it works also after sleep()
    //  dht12.readSensor(true);
    
      // Get temperature from DHT library
      float temperature = dht12.readTemperature();
      Serial.print("Temp: ");
      Serial.print(dht12.readTemperature());
      if (isnan(temperature)) {
        Serial.println("Failed reading temperature from DHT!");
      } else if (temperature != lastTemp || nNoUpdatesTemp == FORCE_UPDATE_N_READS) {
        // Only send temperature if it changed since the last measurement or if we didn't send an update for n times
        lastTemp = temperature;
    //    if (!metric) {
    //      temperature = dht12.toFahrenheit(temperature);
    //    }
        // Reset no updates counter
        nNoUpdatesTemp = 0;
    //    temperature += SENSOR_TEMP_OFFSET;
        send(msgTemp.set(temperature, 1));
    
        #ifdef MY_DEBUG
        Serial.print("T: ");
        Serial.println(temperature);
        #endif
      } else {
        // Increase no update counter if the temperature stayed the same
        nNoUpdatesTemp++;
      }
    
      // Get humidity from DHT library
      float humidity = dht12.readHumidity();
      if (isnan(humidity)) {
        Serial.println("Failed reading humidity from DHT");
      } else if (humidity != lastHum || nNoUpdatesHum == FORCE_UPDATE_N_READS) {
        // Only send humidity if it changed since the last measurement or if we didn't send an update for n times
        lastHum = humidity;
        // Reset no updates counter
        nNoUpdatesHum = 0;
        send(msgHum.set(humidity, 1));
    
        #ifdef MY_DEBUG
        Serial.print("H: ");
        Serial.println(humidity);
        #endif
      } else {
        // Increase no update counter if the humidity stayed the same
        nNoUpdatesHum++;
      }
    
      // Sleep for a while to save energy
      sleep(UPDATE_INTERVAL); 
    }
    

    now i get these lines in the serial monitor:

    222794 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    224802 !TSM:FPAR:NO REPLY
    224804 TSM:FPAR
    226404 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    228412 !TSM:FPAR:NO REPLY
    228414 TSM:FPAR
    230013 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    232022 !TSM:FPAR:NO REPLY
    232024 TSM:FPAR
    233623 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:

    can anybody tell me where the problem is.????

    thanks a lot!

    ps i use a RPi-Gateway with about 15 older Arduino Nano with DHT11 sensors..... they are working fine but too big...


  • Mod

    @michlb1982 looks like the node is able to receive ack from the gw on the messages sent by the node (indicated by st=OK), but the reply message from the gateway is not received.

    Could you share the gateway log?

    Does the gw run the same version of MySensors as the node?


  • Mod

    I think the node ID is missing



  • good morning

    here the config of my rpi-gateway with direct connected nrf24L01+.

    define SerialGate MYSENSORS /dev/ttyUSB020@115200
    attr SerialGate autocreate 1
    attr SerialGate first-sensorid 1
    attr SerialGate last-sensorid 255
    attr SerialGate requestAck 1
    attr SerialGate room 00_Sensornet
    attr SerialGate stateFormat connection```
    
    
    
    

    DEF /dev/ttyUSB020@115200
    DeviceName /dev/ttyUSB020@115200
    FD 4
    NAME SerialGate
    NOTIFYDEV global
    NR 63
    NTFY_ORDER 50-SerialGate
    PARTIAL
    STATE connected
    TYPE MYSENSORS
    ack 1
    inclusion-mode 1
    outstandingAck 0
    version 2.1.0-beta ```

    libraryversion on sensor 2.1.1
    version of Gateway 2.1.0-beta

    how can i update the gateway version?

    is it nessasary to update the old sensores too?

    greetings

    ps the log:

    2017.04.16 08:41:24 1: Including ./log/fhem.save
    2017.04.16 08:41:24 3: Opening SerialGate device /dev/ttyUSB020
    2017.04.16 08:41:24 3: Setting SerialGate serial parameters to 115200,8,N,1
    2017.04.16 08:41:24 3: SerialGate device opened
    2017.04.16 08:44:47 5: MYSENSORS/RAW: /70;0;1;0;0;18.0
    
    2017.04.16 08:44:47 5: MYSENSORS Read: Rx: fr=070 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '18.0'
    
    2017.04.16 08:44:47 5: MYSENSORS/RAW: /70;0;1;0;1;38.0
    
    2017.04.16 08:44:47 5: MYSENSORS Read: Rx: fr=070 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '38.0'
    
    2017.04.16 08:44:58 5: MYSENSORS/RAW: /170;0;1;0;0;20.0
    
    2017.04.16 08:44:58 5: MYSENSORS Read: Rx: fr=170 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '20.0'
    
    2017.04.16 08:45:28 5: MYSENSORS/RAW: /170;0;1;0;1;36.0
    160;0;1;0;0;24.0
    160;0;1;0;1;35.0
    190;0;1;0;0;25.0
    190;0;1;0;1;39.0
    70;0;1;0;0;18.0
    70;0;1;0;1;38.0
    130;0;1;0;0;21.0
    130;0;1;0;1;36.0
    120;0;1;0;0;23.0
    120;0;1;0;1;35.0
    
    2017.04.16 08:45:28 5: MYSENSORS Read: Rx: fr=170 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '36.0'
    
    2017.04.16 08:45:28 5: MYSENSORS Read: Rx: fr=160 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '24.0'
    
    2017.04.16 08:45:28 5: MYSENSORS Read: Rx: fr=160 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '35.0'
    
    2017.04.16 08:45:28 5: MYSENSORS Read: Rx: fr=190 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '25.0'
    
    2017.04.16 08:45:28 5: MYSENSORS Read: Rx: fr=190 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '39.0'
    
    2017.04.16 08:45:28 5: MYSENSORS Read: Rx: fr=070 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '18.0'
    
    2017.04.16 08:45:29 5: MYSENSORS Read: Rx: fr=070 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '38.0'
    
    2017.04.16 08:45:29 5: MYSENSORS Read: Rx: fr=130 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '21.0'
    
    2017.04.16 08:45:29 5: MYSENSORS Read: Rx: fr=130 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '36.0'
    
    2017.04.16 08:45:29 5: MYSENSORS Read: Rx: fr=120 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '23.0'
    
    2017.04.16 08:45:29 5: MYSENSORS Read: Rx: fr=120 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '35.0'
    
    2017.04.16 08:46:01 5: MYSENSORS/RAW: /70;0;1;0;0;18.0
    
    2017.04.16 08:46:01 5: MYSENSORS Read: Rx: fr=070 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '18.0'
    
    2017.04.16 08:46:02 5: MYSENSORS/RAW: /70;0;1;0;1;38.0
    
    2017.04.16 08:46:02 5: MYSENSORS Read: Rx: fr=070 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '38.0'
    
    2017.04.16 08:46:06 5: MYSENSORS/RAW: /170;0;1;0;0;20.0
    
    2017.04.16 08:46:06 5: MYSENSORS Read: Rx: fr=170 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '20.0'
    
    2017.04.16 08:46:07 5: MYSENSORS/RAW: /170;0;1;0;1;36.0
    
    2017.04.16 08:46:07 5: MYSENSORS Read: Rx: fr=170 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '36.0'
    
    2017.04.16 08:46:14 5: MYSENSORS/RAW: /160;0;1;0;0;24.0
    
    2017.04.16 08:46:14 5: MYSENSORS Read: Rx: fr=160 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '24.0'
    
    2017.04.16 08:46:15 5: MYSENSORS/RAW: /160;0;1;0;1;35.0
    
    2017.04.16 08:46:15 5: MYSENSORS Read: Rx: fr=160 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '35.0'
    
    2017.04.16 08:46:22 5: MYSENSORS/RAW: /190;0;1;0;0;25.0
    
    2017.04.16 08:46:22 5: MYSENSORS Read: Rx: fr=190 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '25.0'
    
    2017.04.16 08:46:22 5: MYSENSORS/RAW: /190;0;1;0;1;39.0
    
    2017.04.16 08:46:22 5: MYSENSORS Read: Rx: fr=190 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '39.0'
    
    2017.04.16 08:46:31 5: MYSENSORS/RAW: /120;0;1;0;0;23.0
    
    2017.04.16 08:46:31 5: MYSENSORS Read: Rx: fr=120 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '23.0'
    
    2017.04.16 08:46:31 5: MYSENSORS/RAW: /120;0;1;0;1;35.0
    
    2017.04.16 08:46:31 5: MYSENSORS Read: Rx: fr=120 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '35.0'
    
    2017.04.16 08:46:33 5: MYSENSORS/RAW: /130;0;1;0;0;21.0
    
    2017.04.16 08:46:33 5: MYSENSORS Read: Rx: fr=130 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '21.0'
    
    2017.04.16 08:46:34 5: MYSENSORS/RAW: /130;0;1;0;1;36.0
    
    2017.04.16 08:46:34 5: MYSENSORS Read: Rx: fr=130 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '36.0'
    
    2017.04.16 08:46:39 5: MYSENSORS/RAW: /70;0;1;0;0;18.0
    
    2017.04.16 08:46:39 5: MYSENSORS Read: Rx: fr=070 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '18.0'
    
    2017.04.16 08:46:39 5: MYSENSORS/RAW: /70;0;1;0;1;38.0
    
    2017.04.16 08:46:39 5: MYSENSORS Read: Rx: fr=070 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '38.0'
    
    2017.04.16 08:47:14 5: MYSENSORS/RAW: /170;0;1;0;0;20.0
    
    2017.04.16 08:47:14 5: MYSENSORS Read: Rx: fr=170 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '20.0'
    
    2017.04.16 08:47:15 5: MYSENSORS/RAW: /170;0;1;0;1;36.0
    
    2017.04.16 08:47:15 5: MYSENSORS Read: Rx: fr=170 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '36.0'
    
    2017.04.16 08:47:16 5: MYSENSORS/RAW: /70;0;1;0;0;18.0
    
    2017.04.16 08:47:16 5: MYSENSORS Read: Rx: fr=070 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '18.0'
    
    2017.04.16 08:47:16 5: MYSENSORS/RAW: /70;0;1;0;1;38.0
    
    2017.04.16 08:47:16 5: MYSENSORS Read: Rx: fr=070 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '38.0'
    
    2017.04.16 08:47:22 5: MYSENSORS/RAW: /160;0;1;0;0;24.0
    
    2017.04.16 08:47:22 5: MYSENSORS Read: Rx: fr=160 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '24.0'
    
    2017.04.16 08:47:22 5: MYSENSORS/RAW: /160;0;1;0;1;35.0
    
    2017.04.16 08:47:22 5: MYSENSORS Read: Rx: fr=160 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '35.0'
    
    2017.04.16 08:47:27 5: MYSENSORS/RAW: /190;0;1;0;0;25.0
    
    2017.04.16 08:47:27 5: MYSENSORS Read: Rx: fr=190 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '25.0'
    
    2017.04.16 08:47:27 5: MYSENSORS/RAW: /190;0;1;0;1;39.0
    
    2017.04.16 08:47:27 5: MYSENSORS Read: Rx: fr=190 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '39.0'
    
    2017.04.16 08:47:35 5: MYSENSORS/RAW: /120;0;1;0;0;23.0
    
    2017.04.16 08:47:35 5: MYSENSORS Read: Rx: fr=120 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '23.0'
    
    2017.04.16 08:47:35 5: MYSENSORS/RAW: /120;0;1;0;1;35.0
    
    2017.04.16 08:47:35 5: MYSENSORS Read: Rx: fr=120 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '35.0'
    
    2017.04.16 08:47:42 5: MYSENSORS/RAW: /130;0;1;0;0;21.0
    
    2017.04.16 08:47:42 5: MYSENSORS Read: Rx: fr=130 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '21.0'
    
    2017.04.16 08:47:42 5: MYSENSORS/RAW: /130;0;1;0;1;36.0
    
    2017.04.16 08:47:42 5: MYSENSORS Read: Rx: fr=130 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '36.0'
    
    2017.04.16 08:47:53 5: MYSENSORS/RAW: /70;0;1;0;0;18.0
    
    2017.04.16 08:47:53 5: MYSENSORS Read: Rx: fr=070 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '18.0'
    
    2017.04.16 08:47:54 5: MYSENSORS/RAW: /70;0;1;0;1;38.0
    
    2017.04.16 08:47:54 5: MYSENSORS Read: Rx: fr=070 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '38.0'
    
    2017.04.16 08:48:23 5: MYSENSORS/RAW: /170;0;1;0;0;20.0
    
    2017.04.16 08:48:23 5: MYSENSORS Read: Rx: fr=170 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '20.0'
    
    2017.04.16 08:48:23 5: MYSENSORS/RAW: /170;0;1;0;1;36.0
    
    2017.04.16 08:48:23 5: MYSENSORS Read: Rx: fr=170 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '36.0'
    
    2017.04.16 08:48:29 5: MYSENSORS/RAW: /160;0;1;0;0;24.0
    
    2017.04.16 08:48:29 5: MYSENSORS Read: Rx: fr=160 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '24.0'
    
    2017.04.16 08:48:29 5: MYSENSORS/RAW: /160;0;1;0;1;35.0
    
    2017.04.16 08:48:29 5: MYSENSORS Read: Rx: fr=160 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '35.0'
    
    2017.04.16 08:48:31 5: MYSENSORS/RAW: /70;0;1;0;0;18.0
    
    2017.04.16 08:48:31 5: MYSENSORS Read: Rx: fr=070 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '18.0'
    
    2017.04.16 08:48:31 5: MYSENSORS/RAW: /70;0;1;0;1;38.0
    
    2017.04.16 08:48:31 5: MYSENSORS Read: Rx: fr=070 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '38.0'
    
    2017.04.16 08:48:32 5: MYSENSORS/RAW: /190;0;1;0;0;25.0
    
    2017.04.16 08:48:32 5: MYSENSORS Read: Rx: fr=190 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '25.0'
    
    2017.04.16 08:48:33 5: MYSENSORS/RAW: /190;0;1;0;1;39.0
    
    2017.04.16 08:48:33 5: MYSENSORS Read: Rx: fr=190 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '39.0'
    
    2017.04.16 08:48:39 5: MYSENSORS/RAW: /120;0;1;0;0;23.0
    
    2017.04.16 08:48:39 5: MYSENSORS Read: Rx: fr=120 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '23.0'
    
    2017.04.16 08:48:39 5: MYSENSORS/RAW: /120;0;1;0;1;35.0
    
    2017.04.16 08:48:39 5: MYSENSORS Read: Rx: fr=120 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '35.0'
    
    2017.04.16 08:48:50 5: MYSENSORS/RAW: /130;0;1;0;0;21.0
    
    2017.04.16 08:48:50 5: MYSENSORS Read: Rx: fr=130 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '21.0'
    
    2017.04.16 08:48:50 5: MYSENSORS/RAW: /130;0;1;0;1;36.0
    
    2017.04.16 08:48:50 5: MYSENSORS Read: Rx: fr=130 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '36.0'
    
    2017.04.16 08:49:08 5: MYSENSORS/RAW: /70;0;1;0;0;18.0
    
    2017.04.16 08:49:08 5: MYSENSORS Read: Rx: fr=070 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '18.0'
    
    2017.04.16 08:49:09 5: MYSENSORS/RAW: /70;0;1;0;1;38.0
    
    2017.04.16 08:49:09 5: MYSENSORS Read: Rx: fr=070 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '38.0'
    
    2017.04.16 08:49:31 5: MYSENSORS/RAW: /170;0;1;0;0;20.0
    
    2017.04.16 08:49:31 5: MYSENSORS Read: Rx: fr=170 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '20.0'
    
    2017.04.16 08:49:32 5: MYSENSORS/RAW: /170;0;1;0;1;36.0
    
    2017.04.16 08:49:32 5: MYSENSORS Read: Rx: fr=170 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '36.0'
    
    2017.04.16 08:49:36 5: MYSENSORS/RAW: /160;0;1;0;0;24.0
    
    2017.04.16 08:49:36 5: MYSENSORS Read: Rx: fr=160 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '24.0'
    
    2017.04.16 08:49:36 5: MYSENSORS/RAW: /160;0;1;0;1;35.0
    
    2017.04.16 08:49:36 5: MYSENSORS Read: Rx: fr=160 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '35.0'
    
    2017.04.16 08:49:37 5: MYSENSORS/RAW: /190;0;1;0;0;25.0
    
    2017.04.16 08:49:37 5: MYSENSORS Read: Rx: fr=190 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '25.0'
    
    2017.04.16 08:49:38 5: MYSENSORS/RAW: /190;0;1;0;1;39.0
    
    2017.04.16 08:49:38 5: MYSENSORS Read: Rx: fr=190 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '39.0'
    
    2017.04.16 08:49:43 5: MYSENSORS/RAW: /120;0;1;0;0;23.0
    
    2017.04.16 08:49:43 5: MYSENSORS Read: Rx: fr=120 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '23.0'
    
    2017.04.16 08:49:43 5: MYSENSORS/RAW: /120;0;1;0;1;35.0
    
    2017.04.16 08:49:43 5: MYSENSORS Read: Rx: fr=120 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '35.0'
    
    2017.04.16 08:49:45 5: MYSENSORS/RAW: /70;0;1;0;0;18.0
    
    2017.04.16 08:49:45 5: MYSENSORS Read: Rx: fr=070 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '18.0'
    
    2017.04.16 08:49:46 5: MYSENSORS/RAW: /70;0;1;0;1;38.0
    
    2017.04.16 08:49:46 5: MYSENSORS Read: Rx: fr=070 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '38.0'
    
    2017.04.16 08:49:58 5: MYSENSORS/RAW: /130;0;1;0;0;21.0
    
    2017.04.16 08:49:58 5: MYSENSORS Read: Rx: fr=130 ci=000 c=001(C_SET         ) st=000(V_TEMP          ) ack=0 '21.0'
    
    2017.04.16 08:49:58 5: MYSENSORS/RAW: /130;0;1;0;1;36.0
    
    2017.04.16 08:49:58 5: MYSENSORS Read: Rx: fr=130 ci=000 c=001(C_SET         ) st=001(V_HUM           ) ack=0 '36.0'
    

  • Mod

    Thanks @michlb1982
    Mixing different 2.x versions is ok, so there is no need to upgrade the gw. If you want to upgrade anyway, do the same thing you did when creating the gw, except use a newer version of MySensors.

    I am not sure if the fhem log of the gw shows all debug info from the gw. There are no mentions of the broadcast messages sent by the node. Could you post the debug log from the gateway itself?



  • @mfalkvidd sure i can, but how? is this you want to see an extra log direct from the gateway? where will i find this log?

    as i said i'm not an it technican just an hobbyist, a little DIY'er....


  • Mod

    @michlb1982 I don't know how to do that but I will try to find out.


  • Mod

    Found it!
    https://www.mysensors.org/build/raspberry#test

    The first time you run the gateway, enable the debug messages to verify that it is working:
    sudo ./bin/mysgw -d
    


  • @mfalkvidd Thanks for the link... got it..

    here the output from the debug..

    pi@SmartPi:~/MySensors $ sudo ./bin/mysgw -d
    mysgw: Starting gateway...
    mysgw: Protocol version - 2.1.0-beta
    mysgw: MCO:BGN:INIT GW,CP=RNNG--Q,VER=2.1.0-beta
    mysgw: TSF:LRT:OK
    mysgw: TSM:INIT
    mysgw: TSF:WUR:MS=0
    mysgw: !TSM:INIT:TSP FAIL
    mysgw: TSM:FAIL:CNT=1
    mysgw: TSM:FAIL:PDT
    mysgw: TSM:FAIL:RE-INIT
    mysgw: TSM:INIT
    mysgw: !TSM:INIT:TSP FAIL
    mysgw: TSM:FAIL:CNT=2
    mysgw: TSM:FAIL:PDT
    mysgw: TSM:FAIL:RE-INIT
    mysgw: TSM:INIT
    mysgw: !TSM:INIT:TSP FAIL
    mysgw: TSM:FAIL:CNT=3
    mysgw: TSM:FAIL:PDT
    mysgw: TSM:FAIL:RE-INIT
    mysgw: TSM:INIT
    mysgw: !TSM:INIT:TSP FAIL
    mysgw: TSM:FAIL:CNT=4
    mysgw: TSM:FAIL:PDT
    mysgw: TSM:FAIL:RE-INIT
    mysgw: TSM:INIT
    mysgw: !TSM:INIT:TSP FAIL
    mysgw: TSM:FAIL:CNT=5
    mysgw: TSM:FAIL:PDT
    mysgw: TSM:FAIL:RE-INIT
    mysgw: TSM:INIT
    mysgw: !TSM:INIT:TSP FAIL
    mysgw: TSM:FAIL:CNT=6
    mysgw: TSM:FAIL:PDT
    mysgw: TSM:FAIL:RE-INIT
    mysgw: TSM:INIT
    mysgw: !TSM:INIT:TSP FAIL
    mysgw: TSM:FAIL:CNT=7
    mysgw: TSM:FAIL:PDT
    mysgw: TSM:FAIL:RE-INIT
    mysgw: TSM:INIT
    mysgw: TSM:INIT:TSP OK
    mysgw: TSM:INIT:GW MODE
    mysgw: TSM:READY:ID=0,PAR=0,DIS=0
    mysgw: MCO:BGN:STP
    mysgw: MCO:BGN:INIT OK,TSP=1
    mysgw: TSF:MSG:READ,70-70-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    mysgw: TSF:MSG:BC
    mysgw: TSF:MSG:FPAR REQ,ID=70
    mysgw: TSF:PNG:SEND,TO=0
    mysgw: TSF:CKU:OK
    mysgw: TSF:MSG:GWL OK
    mysgw: Received SIGINT
    

    My other sensors are working fine, just the new one isn't .


  • Mod

    It looks like it can't initialize the radio.



  • @gohan thanks for the info.... you were right!
    i soldered the smd radio like in the building instruktions descripted,and because of that, that there were no infos about the voltage of the smd radio i used the 3,3v regulator ... that was the mistake!!!
    so i thaught, if it's not workimg, let's try tu use the 5v, worst case the radio will go to hell....
    so... testet with 5v on themradio and ... heureka it works.... now i have the dht12 with nrf24 smd on a mini pro.... so the sensor is very small and easy coded....
    i will make a build and wire diagramm and rewrite the code... who can i send it for publication on the mysensors site?


  • Mod

    That's odd... Unless that smd version has different voltage requirements, the nrf24 should fry with 5v


Log in to reply
 

Suggested Topics

  • 87
  • 7
  • 3
  • 7
  • 5
  • 6

74
Online

11.4k
Users

11.1k
Topics

112.7k
Posts