Can't get Serial Output from an RF-Nano



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

  • Mod

    Welcome to the forum @Keichi

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



  • 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


  • Mod

    @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.



  • 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


  • Mod

    Nice work @Keichi, thanks for reporting back!


Log in to reply
 

Suggested Topics

21
Online

11.2k
Users

11.1k
Topics

112.5k
Posts