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. Troubleshooting
  3. Can't get Serial Output from an RF-Nano

Can't get Serial Output from an RF-Nano

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 2 Posters 51 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.
  • K Offline
    K Offline
    Keichi
    wrote on last edited by
    #1

    So even with an Correctly set Baudrate i can't get the Serial Monitor in Arduino IDE 2.0.3 to work, i just get sluggish characters like ��x��x�x���x�x��������x�x�x�x�xx��x�x��xx����x�x��x�x�xx���x�x�x��x��x�x���x�x�x���x�x�x���x��x�x��x�x�x�xx�xx�xx�x�x�x�x�x�x�x�x��x��x�x�xx�x�x��x
    this. I also tried the current 2.4 development branch from mysensors.. It still does'nt work. But if i just put one of the Normal Sensor sketches on it (without anything from the mysensors stuff), it works just fine.

    Here is one of the Example Sketches which does'nt involve any Sensors and was just for testing of the Serial Monitor.

    /*
     * The MySensors Arduino library handles the wireless radio link and protocol
     * between your home built sensors/actuators and HA controller of choice.
     * The sensors forms a self healing radio network with optional repeaters. Each
     * repeater and gateway builds a routing tables in EEPROM which keeps track of the
     * network topology allowing messages to be routed to nodes.
     *
     * Created by Henrik Ekblad <henrik.ekblad@mysensors.org>
     * Copyright (C) 2013-2019 Sensnology AB
     * Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
     *
     * Documentation: http://www.mysensors.org
     * Support Forum: http://forum.mysensors.org
     *
     * This program is free software; you can redistribute it and/or
     * modify it under the terms of the GNU General Public License
     * version 2 as published by the Free Software Foundation.
     *
     *******************************
     *
     * REVISION HISTORY
     * Version 1.0 - tekka
     *
     * DESCRIPTION
     * Passive node example: This is a passive & independent reporting node
     *
     */
    
    // Enable debug prints
    #define MY_DEBUG
    #define MY_BAUD_RATE 115200
    // Enable passive mode
    #define MY_PASSIVE_NODE
    
    // Passive mode requires static node ID
    #define MY_NODE_ID 100
    
    // Enable and select radio type attached
    #define MY_RADIO_RF24
    //#define MY_RADIO_NRF5_ESB
    //#define MY_RADIO_RFM69
    //#define MY_RADIO_RFM95
    #define MY_RF24_CE_PIN 10 
    #define MY_RF24_CS_PIN 9
    #define MY_RF24_DATARATE RF24_1MBPS
    #define MY_RF24_PA_LEVEL RF24_PA_MAX
    #include <MySensors.h>
    
    #define CHILD_ID 0   // Id of the sensor child
    
    // Initialize general message
    MyMessage msg(CHILD_ID, V_TEMP);
    
    void setup()
    {
      Serial.begin(115200);
    }
    
    void presentation()
    {
    	// Send the sketch version information to the gateway and controller
    	sendSketchInfo("Passive node", "1.0");
    
    	// Register all sensors to gw (they will be created as child devices)
    	present(CHILD_ID, S_TEMP);
    }
    
    void loop()
    {
    	// generate some random data
    	send(msg.set(25.0+random(0,30)/10.0,2));
    	sleep(2000);
    }
    
    
    mfalkviddM 1 Reply Last reply
    0
    • K Keichi

      So even with an Correctly set Baudrate i can't get the Serial Monitor in Arduino IDE 2.0.3 to work, i just get sluggish characters like ��x��x�x���x�x��������x�x�x�x�xx��x�x��xx����x�x��x�x�xx���x�x�x��x��x�x���x�x�x���x�x�x���x��x�x��x�x�x�xx�xx�xx�x�x�x�x�x�x�x�x��x��x�x�xx�x�x��x
      this. I also tried the current 2.4 development branch from mysensors.. It still does'nt work. But if i just put one of the Normal Sensor sketches on it (without anything from the mysensors stuff), it works just fine.

      Here is one of the Example Sketches which does'nt involve any Sensors and was just for testing of the Serial Monitor.

      /*
       * The MySensors Arduino library handles the wireless radio link and protocol
       * between your home built sensors/actuators and HA controller of choice.
       * The sensors forms a self healing radio network with optional repeaters. Each
       * repeater and gateway builds a routing tables in EEPROM which keeps track of the
       * network topology allowing messages to be routed to nodes.
       *
       * Created by Henrik Ekblad <henrik.ekblad@mysensors.org>
       * Copyright (C) 2013-2019 Sensnology AB
       * Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
       *
       * Documentation: http://www.mysensors.org
       * Support Forum: http://forum.mysensors.org
       *
       * This program is free software; you can redistribute it and/or
       * modify it under the terms of the GNU General Public License
       * version 2 as published by the Free Software Foundation.
       *
       *******************************
       *
       * REVISION HISTORY
       * Version 1.0 - tekka
       *
       * DESCRIPTION
       * Passive node example: This is a passive & independent reporting node
       *
       */
      
      // Enable debug prints
      #define MY_DEBUG
      #define MY_BAUD_RATE 115200
      // Enable passive mode
      #define MY_PASSIVE_NODE
      
      // Passive mode requires static node ID
      #define MY_NODE_ID 100
      
      // Enable and select radio type attached
      #define MY_RADIO_RF24
      //#define MY_RADIO_NRF5_ESB
      //#define MY_RADIO_RFM69
      //#define MY_RADIO_RFM95
      #define MY_RF24_CE_PIN 10 
      #define MY_RF24_CS_PIN 9
      #define MY_RF24_DATARATE RF24_1MBPS
      #define MY_RF24_PA_LEVEL RF24_PA_MAX
      #include <MySensors.h>
      
      #define CHILD_ID 0   // Id of the sensor child
      
      // Initialize general message
      MyMessage msg(CHILD_ID, V_TEMP);
      
      void setup()
      {
        Serial.begin(115200);
      }
      
      void presentation()
      {
      	// Send the sketch version information to the gateway and controller
      	sendSketchInfo("Passive node", "1.0");
      
      	// Register all sensors to gw (they will be created as child devices)
      	present(CHILD_ID, S_TEMP);
      }
      
      void loop()
      {
      	// generate some random data
      	send(msg.set(25.0+random(0,30)/10.0,2));
      	sleep(2000);
      }
      
      
      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      Welcome to the forum @Keichi

      Maybe https://forum.mysensors.org/post/113281 can be useful?

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Keichi
        wrote on last edited by
        #3

        Nope, that did'nt help i tried it with the Arduino AVR 1.6 branch instead of the 1.8.3 as suggested there (since it's still an Atmel and not an ESP Processor) but without any luck

        mfalkviddM 1 Reply Last reply
        0
        • K Keichi

          Nope, that did'nt help i tried it with the Arduino AVR 1.6 branch instead of the 1.8.3 as suggested there (since it's still an Atmel and not an ESP Processor) but without any luck

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #4

          @Keichi sorry, I thought you were using an esp bpard.

          Have you tried different baudrates in the serial monitor? If you are able to find one that works, you might get useful information.

          1 Reply Last reply
          0
          • K Offline
            K Offline
            Keichi
            wrote on last edited by
            #5

            Solved it, by accident i found this thread

            So just out of curiosity i changed the baud rate in the boards.txt file and installed the linked MySensors 2.4 Version from the Github which had some Changes for this particular Board.

            And since it's working now, i really have to order a few more of them, since the Nano Style with the integreated NRF24L01+ is pretty Neat

            mfalkviddM 1 Reply Last reply
            1
            • K Keichi

              Solved it, by accident i found this thread

              So just out of curiosity i changed the baud rate in the boards.txt file and installed the linked MySensors 2.4 Version from the Github which had some Changes for this particular Board.

              And since it's working now, i really have to order a few more of them, since the Nano Style with the integreated NRF24L01+ is pretty Neat

              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #6

              Nice work @Keichi, thanks for reporting back!

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


              19

              Online

              11.7k

              Users

              11.2k

              Topics

              113.1k

              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