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. Problems with Node sensor
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

Problems with Node sensor

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 4 Posters 2.1k Views 4 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.
  • tandobkhcmT Offline
    tandobkhcmT Offline
    tandobkhcm
    wrote on last edited by tandobkhcm
    #1

    Hello guys!. I got tutorial "http://www.makeuseof.com/tag/diy-smart-home-sensors-arduino-mysensors-openhab/". But i didn't see humiditysensor in library. Then, i got code from https://www.mysensors.org/build/humidity and uploaded sketch on my sensors node and serial monitor look like this alt text
    and
    alt text
    it's different to what i see in tutorial alt text
    what is "st=bc"?
    Thank you for taking the time to help and sorry because my English is not good.

    1 Reply Last reply
    0
    • mhkoM Offline
      mhkoM Offline
      mhko
      wrote on last edited by
      #2

      I have the same problem with different nodes. Yesterday only one node hade this problem today i have 2 nodes.
      any commens on this topic?

      i have a ethernet gateway.

      Tms:fpar:fail

      1 Reply Last reply
      0
      • mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by
        #3

        Welcome to the MySensors community @tandobkhcm and @mhko ! I'll handle tandobkhcm's problem first since that's the problem where I have some information.

        https://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help has information on how to read the debug output. bc means broadcast.

        find parent (fpar) means the node is searching for a way to reach a parent (usually the gateway but can be a repeater node in a more advanced setup, read https://www.mysensors.org/about/network for more details).

        fpar fail means that the node was unable to find a way to reach a parent.

        Please share information on gateway setup, which radio you are using and share the sketch for the gateway.

        radio fail means that the node is unable to initialize the radio. This is usually due to incorrect wiring.

        tandobkhcmT 1 Reply Last reply
        2
        • mfalkviddM mfalkvidd

          Welcome to the MySensors community @tandobkhcm and @mhko ! I'll handle tandobkhcm's problem first since that's the problem where I have some information.

          https://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help has information on how to read the debug output. bc means broadcast.

          find parent (fpar) means the node is searching for a way to reach a parent (usually the gateway but can be a repeater node in a more advanced setup, read https://www.mysensors.org/about/network for more details).

          fpar fail means that the node was unable to find a way to reach a parent.

          Please share information on gateway setup, which radio you are using and share the sketch for the gateway.

          radio fail means that the node is unable to initialize the radio. This is usually due to incorrect wiring.

          tandobkhcmT Offline
          tandobkhcmT Offline
          tandobkhcm
          wrote on last edited by tandobkhcm
          #4

          Hi @mfalkvidd !. Thank you for that infomations. I'll read https://ci.mysensors.org/job/Verifiers/job/MySensorsArduino/branch/development/Doxygen_HTML/group__MyTransportgrp.html#details.

          After I convert Mysensors 1.5.x -> 2.0 it's probably working. But i don't see temperature and humidity to display serial monitor
          alt text

          My code for Humiditysensor :

          #define MY_NODE_ID 1 // Sets a static id for a node
          
          #define MY_DEBUG    // Enables debug messages in the serial log
          
          #define MY_RF24_CE_PIN 9    // Radio specific settings for RF24
          #define MY_RF24_CS_PIN 10 // Radio specific settings for RF24 (you'll find similar config for RFM69)
          
          
           //Enabdle if use NRF24
           #define MY_RADIO_NRF24
           //Enable if use RFM69
           //#define MY_RADIO_RFM69
           //Enable iff use RS485
           //#define MY_RS485
          
          #include <SPI.h>
          #include <MySensors.h>  
          #include <DHT.h>  
          
          #define CHILD_ID_HUM 0
          #define CHILD_ID_TEMP 1
          #define HUMIDITY_SENSOR_DIGITAL_PIN 2
          unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds)
          
          DHT dht;
          float lastTemp;
          float lastHum;
          boolean metric = true; 
          MyMessage msgHum(CHILD_ID_HUM, V_HUM);
          MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP);
          
          
          void presentation()  
          { 
            dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN); 
          
            // Send the Sketch Version Information to the Gateway
            sendSketchInfo("Humidity", "1.0");
          
            // Register all sensors (they will be created as child devices)
            present(CHILD_ID_HUM, S_HUM);
            present(CHILD_ID_TEMP, S_TEMP);
            
            metric = getConfig().isMetric;
          }
          
          void loop()      
          {  
            delay(dht.getMinimumSamplingPeriod());
          
            float temperature = dht.getTemperature();
            if (isnan(temperature)) {
                Serial.println("Failed reading temperature from DHT");
            } else if (temperature != lastTemp) {
              lastTemp = temperature;
              if (!metric) {
                temperature = dht.toFahrenheit(temperature);
              }
              send(msgTemp.set(temperature, 1));
              Serial.print("T: ");
              Serial.println(temperature);
            }
            
            float humidity = dht.getHumidity();
            if (isnan(humidity)) {
                Serial.println("Failed reading humidity from DHT");
            } else if (humidity != lastHum) {
                lastHum = humidity;
                send(msgHum.set(humidity, 1));
                Serial.print("H: ");
                Serial.println(humidity);
            }
          
            sleep(SLEEP_TIME); //sleep a bit
          }
          
          

          For gateway

          // Enable debug prints to serial monitor
          #define MY_DEBUG
          
          // Enables and select radio type (if attached)
          #define MY_RADIO_NRF24
          //#define MY_RADIO_RFM69
          
          #define MY_GATEWAY_MQTT_CLIENT
          
          // Set this node's subscribe and publish topic prefix
          #define MY_MQTT_PUBLISH_TOPIC_PREFIX "mygateway1-out"
          #define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX "mygateway1-in"
          
          // Set MQTT client id
          #define MY_MQTT_CLIENT_ID "mysensors-1"
          
          // W5100 Ethernet module SPI enable (optional if using a shield/module that manages SPI_EN signal)
          //#define MY_W5100_SPI_EN 4
          
          // Enable Soft SPI for NRF radio (note different radio wiring is required)
          // The W5100 ethernet module seems to have a hard time co-operate with
          // radio on the same spi bus.
          #if !defined(MY_W5100_SPI_EN) && !defined(ARDUINO_ARCH_SAMD)
            #define MY_SOFTSPI
            #define MY_SOFT_SPI_SCK_PIN 14
            #define MY_SOFT_SPI_MISO_PIN 16
            #define MY_SOFT_SPI_MOSI_PIN 15
          #endif
          
          // When W5100 is connected we have to move CE/CSN pins for NRF radio
          #ifndef MY_RF24_CE_PIN
            #define MY_RF24_CE_PIN 5
          #endif
          #ifndef MY_RF24_CS_PIN
            #define MY_RF24_CS_PIN 6
          #endif
          
          // Enable these if your MQTT broker requires usenrame/password
          //#define MY_MQTT_USER "username"
          //#define MY_MQTT_PASSWORD "password"
          
          // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP)
          #define MY_IP_ADDRESS 192,168,10,103
          
          // If using static ip you need to define Gateway and Subnet address as well
          #define MY_IP_GATEWAY_ADDRESS 192,168,10,1
          #define MY_IP_SUBNET_ADDRESS 255,255,255,0
          
          // MQTT broker ip address or url. Define one or the other.
          //#define MY_CONTROLLER_URL_ADDRESS "m20.cloudmqtt.com"
          #define MY_CONTROLLER_IP_ADDRESS 192, 168, 10, 102
          
          // The MQTT broker port to to open
          #define MY_PORT 1883
          
           /*
          // Enable inclusion mode
          #define MY_INCLUSION_MODE_FEATURE
          // Enable Inclusion mode button on gateway
          //#define MY_INCLUSION_BUTTON_FEATURE
          // Set inclusion mode duration (in seconds)
          #define MY_INCLUSION_MODE_DURATION 60
          // Digital pin used for inclusion mode button
          //#define MY_INCLUSION_MODE_BUTTON_PIN  3
          
          // Set blinking period
          #define MY_DEFAULT_LED_BLINK_PERIOD 300
          
          // Flash leds on rx/tx/err
          // Uncomment to override default HW configurations
          //#define MY_DEFAULT_ERR_LED_PIN 16  // Error led pin
          //#define MY_DEFAULT_RX_LED_PIN  16  // Receive led pin
          //#define MY_DEFAULT_TX_LED_PIN  16  // the PCB, on board LED
          */
          
          #include <Ethernet.h>
          #include <MySensors.h>
          
          void setup() {
          }
          
          void presentation() {
            // Present locally attached sensors here
          }
          
          
          void loop() {
            // Send locally attached sensors data here
          }
          

          My router
          alt text

          1 Reply Last reply
          0
          • mhkoM Offline
            mhkoM Offline
            mhko
            wrote on last edited by
            #5

            Thanks for the time and effort.
            The links did help me, sometime it can be very difficult to find the relevant information for problem solving, so the help i much appreciated.

            it all turn out to be a dodig antenna connector on me GW radio. I am using the nRF24L01+PA+LNA.

            1 Reply Last reply
            1
            • Nathan MatosN Offline
              Nathan MatosN Offline
              Nathan Matos
              wrote on last edited by
              #6

              Guys, i'm having the same problem but with a serial GW..

              Any ideas?

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


              13

              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