serial nrf24 gateway is rebooting over and over



  • Hi,

    i built a serial gateway with a nano and E01-ML01SP4 nrf24 ebyte module
    https://www.ebyte.com/en/product-view-news.aspx?id=114

    i posted about it here https://forum.mysensors.org/topic/12109/nano-e01-ml01sp4-gateway

    the problème is the gate way is rebooting alone each time i try to read the serial

    of course my controler (HA) can't get the data as the gateway is always rebooting

    my node (wich is working with an other nrf24 gateway) can't connect neither

    my gateway sketch is default one with

    // Enable debug prints to serial monitor
    #define MY_DEBUG
    #define MY_DEBUG_VERBOSE_GATEWAY
    #define MY_DEBUG_VERBOSE_RF24
    
    // Enable and select radio type attached
    #define MY_RADIO_RF24
    //#define MY_RADIO_NRF5_ESB
    //#define MY_RADIO_RFM69
    //#define MY_RADIO_RFM95
    
    // Set LOW transmit power level as default, if you have an amplified NRF-module and
    // power your radio separately with a good regulator you can turn up PA level.
    #define MY_RF24_PA_LEVEL RF24_PA_LOW
    
    //#define MY_RF24_CE_PIN (12)
    //#define MY_RF24_CS_PIN (13)
    //#define MY_RF24_IRQ_PIN (5)
    
    
    // Enable serial gateway
    #define MY_GATEWAY_SERIAL
    
    // Define a lower baud rate for Arduinos running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender)
    #if F_CPU == 8000000L
    #define MY_BAUD_RATE 38400
    #endif
    
    // Enable inclusion mode
    #define MY_INCLUSION_MODE_FEATURE
    // Enable Inclusion mode button on gateway
    #define MY_INCLUSION_BUTTON_FEATURE
    
    // Inverses behavior of inclusion button (if using external pullup)
    //#define MY_INCLUSION_BUTTON_EXTERNAL_PULLUP
    
    // Set inclusion mode duration (in seconds)
    #define MY_INCLUSION_MODE_DURATION 180
    // Digital pin used for inclusion mode button
    #define MY_INCLUSION_MODE_BUTTON_PIN  3
    
    // Set blinking period
    #define MY_DEFAULT_LED_BLINK_PERIOD 300
    
    // Inverses the behavior of leds
    //#define MY_WITH_LEDS_BLINKING_INVERSE
    
    // Flash leds on rx/tx/err
    // Uncomment to override default HW configurations
    #define MY_DEFAULT_ERR_LED_PIN 4  // Error led pin
    #define MY_DEFAULT_RX_LED_PIN  6  // Receive led pin
    #define MY_DEFAULT_TX_LED_PIN  5  // the PCB, on board LED
    
    #define MY_RF24_CHANNEL 14
    
    // signing
    #define MY_SIGNING_SIMPLE_PASSWD "MYAWSOMEPASSWD"
    
    #include <MySensors.h>
    
    void setup()
    {
    	// Setup locally attached sensors
    }
    
    void presentation()
    {
    	// Present locally attached sensors
    }
    
    void loop()
    {
    	// Send locally attached sensor data here
    }
    
    

    i can't figure what is going out
    some help would be really appreciated

    ---- Opened the serial port /dev/ttyUSB2 ----
    0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RNNGAS--,FQ=16,REL=255,VER=2.3.2
    0;255;3;0;9;39 TSM:INIT
    0;255;3;0;9;41 TSF:WUR:MS=0
    0;255;3;0;9;45 RF24:INIT:PIN,CE=9,CS=10
    0;255;3;0;9;48 RF24:SBY
    0;255;3;0;9;50 RF24:WBR:REG=0,VAL=14
    0;255;3;0;9;58 RF24:WBR:REG=3,VAL=3
    0;255;3;0;9;61 RF24:WBR:REG=4,VAL=95
    0;255;3;0;9;64 RF24:WBR:REG=5,VAL=14
    0;255;3;0;9;68 RF24:WBR:REG=6,VAL=39
    0;255;3;0;9;71 RF24:WBR:REG=29,VAL=4
    0;255;3;0;9;74 RF24:RBR:REG=29,VAL=4
    0;255;3;0;9;77 RF24:RBR:REG=6,VAL=39
    0;255;3;0;9;81 RF24:RBR:REG=5,VAL=14
    0;255;3;0;9;84 RF24:WBR:REG=2,VAL=2
    0;255;3;0;9;88 RF24:WBR:REG=1,VAL=0
    0;255;3;0;9;91 RF24:WBR:REG=28,VAL=3
    0;255;3;0;9;95 RF24:FRX
    0;255;3;0;9;97 RF24:FTX
    0;255;3;0;9;99 RF24:WBR:REG=7,VAL=112
    0;255;3;0;9;102 TSM:INIT:TSP OK
    0;255;3;0;9;105 TSM:INIT:GW MODE
    0;255;3;0;9;108 RF24:WBR:REG=2,VAL=3
    0;255;3;0;9;111 RF24:WBR:REG=1,VAL=1
    0;255;3;0;9;114 RF24:STL
    0;255;3;0;9;117 RF24:WBR:REG=0,VAL=15
    0;255;3;0;9;120 RF24:WBR:REG=10,VAL=0
    0;255;3;0;9;123 TSM:READY:ID=0,PAR=0,DIS=0
    0;255;3;0;9;128 MCO:REG:NOT NEEDED
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.3.2
    0;255;3;0;9;132 MCO:BGN:STP
    0;255;3;0;9;139 RF24:RBR:REG=6,VAL=39
    0;255;3;0;9;142 RF24:RBR:REG=5,VAL=14
    0;255;3;0;9;145 MCO:BGN:INIT OK,TSP=1
    0;255;3;0;9;149 TSM:READY:NWD REQ
    0;255;3;0;9;152 RF24:SPL
    0;255;3;0;9;154 RF24:WBR:REG=0,VAL=14
    0;255;3;0;9;157 RF24:OWP:RCPT=255
    0;255;3;0;9;160 RF24:WBR:REG=10,VAL=255
    0;255;3;0;9;164 RF24:WBR:REG=16,VAL=255
    0;255;3;0;9;167 RF24:TXM:TO=255,LEN=7
    0;255;3;0;9;172 RF24:FTX
    0;255;3;0;9;174 RF24:WBR:REG=4
    ---- Closed serial port /dev/ttyUSB2 due to disconnection from the machine ----
    ---- Reopened serial port /dev/ttyUSB2 ----
    0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RNNGAS--,FQ=16,REL=255,VER=2.3.2
    0;255;3;0;9;40 TSM:INIT
    0;255;3;0;9;43 TSF:WUR:MS=0
    0;255;3;0;9;45 RF24:INIT:PIN,CE=9,CS=10
    0;255;3;0;9;49 RF24:SBY
    0;255;3;0;9;51 RF24:WBR:REG=0,VAL=14
    0;255;3;0;9;59 RF24:WBR:REG=3,VAL=3
    0;255;3;0;9;62 RF24:WBR:REG=4,VAL=95
    0;255;3;0;9;65 RF24:WBR:REG=5,VAL=14
    0;255;3;0;9;68 RF24:WBR:REG=6,VAL=39
    0;255;3;0;9;71 RF24:WBR:REG=29,VAL=4
    0;255;3;0;9;75 RF24:RBR:REG=29,VAL=4
    0;255;3;0;9;78 RF24:RBR:REG=6,VAL=39
    0;255;3;0;9;81 RF24:RBR:REG=5,VAL=14
    0;255;3;0;9;84 RF24:WBR:REG=2,VAL=2
    0;255;3;0;9;89 RF24:WBR:REG=1,VAL=0
    0;255;3;0;9;92 RF24:WBR:REG=28,VAL=3
    0;255;3;0;9;95 RF24:FRX
    0;255;3;0;9;97 RF24:FTX
    0;255;3;0;9;100 RF24:WBR:REG=7,VAL=112
    0;255;3;0;9;103 TSM:INIT:TSP OK
    0;255;3;0;9;106 TSM:INIT:GW MODE
    0;255;3;0;9;109 RF24:WBR:REG=2,VAL=3
    0;255;3;0;9;112 RF24:WBR:REG=1,VAL=1
    0;255;3;0;9;115 RF24:STL
    0;255;3;0;9;117 RF24:WBR:REG=0,VAL=15
    0;255;3;0;9;121 RF24:WBR:REG=10,VAL=0
    0;255;3;0;9;124 TSM:READY:ID=0,PAR=0,DIS=0
    0;255;3;0;9;129 MCO:REG:NOT NEEDED
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.3.2
    0;255;3;0;9;133 MCO:BGN:STP
    0;255;3;0;9;139 RF24:RBR:REG=6,VAL=39
    0;255;3;0;9;143 RF24:RBR:REG=5,VAL=14
    0;255;3;0;9;146 MCO:BGN:INIT OK,TSP=1
    0;255;3;0;9;149 TSM:READY:NWD REQ
    0;255;3;0;9;152 RF24:SPL
    0;255;3;0;9;155 RF24:WBR:REG=0,VAL=14
    0;255;3;0;9;158 RF24:OWP:RCPT=255
    0;255;3;0;9;161 RF24:WBR:REG=10,VAL=255
    0;255;3;0;9;165 RF24:WBR:REG=16,VAL=255
    0;255;3;0;9;168 RF24:TXM:TO=255,LEN=7
    0;255;3;0;9;172 RF24:FTX
    0;255;3;0;9;175 RF24:WBR:REG=
    ---- Closed serial port /dev/ttyUSB2 due to disconnection from the machine ----
    ---- Reopened serial port /dev/ttyUSB2 ----
    0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RNNGAS--,FQ=16,REL=255,VER=2.3.2
    0;255;3;0;9;39 TSM:INIT
    0;255;3;0;9;41 TSF:WUR:MS=0
    0;255;3;0;9;44 RF24:INIT:PIN,CE=9,CS=10
    0;255;3;0;9;48 RF24:SBY
    0;255;3;0;9;50 RF24:WBR:REG=0,VAL=14
    0;255;3;0;9;58 RF24:WBR:REG=3,VAL=3
    0;255;3;0;9;61 RF24:WBR:REG=4,VAL=95
    0;255;3;0;9;64 RF24:WBR:REG=5,VAL=14
    etc
    etc
    etc
    ...
    

    home assistant logs

    Logger: mysensors.transport
    Source: runner.py:179
    First occurred: 19:54:22 (99 occurrences)
    Last logged: 22:38:52
    
    device reports readiness to read but returned no data (device disconnected or multiple access on port?)
    
    
    Logger: mysensors.gateway_serial
    Source: runner.py:179
    First occurred: 19:54:22 (1033 occurrences)
    Last logged: 22:49:22
    
    Unable to connect to /dev/ttyUSB2
    


  • Have you tried a different pc? What about your power supply? It could be the standard nano regulator isn't powerful enough.



  • hi electrick,
    thank you for the hint, i'm so glad that someone finally talks to me 🙂
    Yes i reached the same conclusion about power supply of the nrf24 board.
    3.3V pin from nano can only deliver 50mA when e01-ml01sp4 needs 120mA.
    I redesigned my project including a ams1117 between nano's 5V pin and the radio board
    https://forum.mysensors.org/topic/12109/nano-e01-ml01sp4-gateway/4?_=1679247873047
    next episode when i'll receive the new pcb !


Log in to reply
 

Suggested Topics

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts