[Solved]UPL:Fail



  • I have my mqtt client gateway up and running and I have a test node setup.

    The debug for the node is

    TSP:MSG:PAR OK (ID=0, dist=1)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=1)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1

    Not sure what is causing it. If i reset it a few times it eventually connects. I have tried clearing the eeprom and reuploaded the sketch.

    Thanks


  • Admin

    @Jason-Brunk Please provide additional information such as HW setup and configuration, and also post the complete log from node and GW while booting.



  • Looks like it may have been related to my gateway and sensor being too close.


  • Admin

    @Jason-Brunk Yes, this is a common issue.



  • Hello!
    I'm having the same issue. How to solve it?
    I've converted a working sensor having API 1.5 with last API and getting this errors:

    ---
    Setting S_LIGHT sensor: 1
    ---
    Setting S_LIGHT sensor: 2
    ---
    Setting S_LIGHT sensor: 3
    ---
    Setting S_LIGHT sensor: 4
    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=20)
    TSM:FPAR
    TSP:MSG:SEND 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-20 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=20)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    TSP:MSG:SEND 20-20-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
    TSP:MSG:READ 28-28-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    TSP:MSG:BC
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-20 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=20)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    TSP:MSG:SEND 20-20-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
    TSP:MSG:READ 28-28-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    TSP:MSG:BC
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-20 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=20)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    TSP:MSG:SEND 20-20-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
    TSP:MSG:READ 28-28-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    TSP:MSG:BC
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-20 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=20)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    TSP:MSG:SEND 20-20-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
    TSP:MSG:READ 28-28-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    TSP:MSG:BC
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL```
    
    It has worked without issues until the last update.

  • Admin

    @xefil Did you also convert the GW to 2.0? If yes, please post the debug log.



  • I have the same problem as do to solve it?

    Starting repeater (RNNRA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=123)
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=123)
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-123 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-123 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=123)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 123-123-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    


  • I was quite sure the gateway (MQTTClient) was updated with latest API library, but I was wrong. It was on 1.5 version. Updated to the latest, the problem was solved. Hope it helps!

    Simon



  • @xefil with my errors. I changed the capacitor value to 100u and that fixed ALOT of problems. Some one mentioned to me that 2.0 uses the radio a little more and may need a higher value cap.


  • Admin

    @Pictor-Lallemand Please make sure your GW is at 2.0.


  • Admin

    @xefil Perfect, have fun! 🙂



  • @Jason-Brunk I already had a 100u capacitor, thanks for the suggestion.... btw strange, maybe the update was important.
    @tekka , thank you!! 😉



  • or find the code for my GW I use an Arduino pro mini card for a ENC28J60 network and nRF24L01 for radio. because I can not find it in the examples mysensors



  • You mean you cannot find the examples from the API library? When you download it, you can find it in there. On github as well:

    https://github.com/mysensors/MySensors/tree/master/examples

    In case try to start uploading two examples (1 GW and 1 sensor) and check. They work without issues. If not, maybe a hardware failure.

    Simon



  • in the examples of the API (MySensors 2.0.0) I can not find ENC28J60 Gateway

    send me please you the code in this gateway thank you


  • Admin



  • it didnt change anything here is the log for sensors

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=123)
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=123)
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-123 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-123 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=123)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 123-123-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    
    
    

    the sketch use

    /**
     * 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-2015 Sensnology AB
     * Full contributor list: https://github.com/mysensors/Arduino/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 - Henrik Ekblad
     * 
     * DESCRIPTION
     * Example sketch showing how to control physical relays. 
     * This example will remember relay state after power failure.
     * http://www.mysensors.org/build/relay
     */ 
    
    // Enable debug prints to serial monitor
    #define MY_DEBUG 
    
    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_RFM69
    
    // Enable repeater functionality for this node
    #define MY_REPEATER_FEATURE
    
    #include <SPI.h>
    #include <MySensors.h>
    
    #define RELAY_1  8  // Arduino Digital I/O pin number for first relay (second on pin+1 etc)
    #define NUMBER_OF_RELAYS 1 // Total number of attached relays
    #define RELAY_ON 1  // GPIO value to write to turn on attached relay
    #define RELAY_OFF 0 // GPIO value to write to turn off attached relay
    
    
    void before() { 
      for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS;sensor++, pin++) {
        // Then set relay pins in output mode
        pinMode(pin, OUTPUT);   
        // Set relay to last known state (using eeprom storage) 
        digitalWrite(pin, loadState(sensor)?RELAY_ON:RELAY_OFF);
      }
    }
    
    void setup() {
      
    }
    
    void presentation()  
    {   
      // Send the sketch version information to the gateway and Controller
      sendSketchInfo("Relay", "1.0");
    
      for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS;sensor++, pin++) {
        // Register all sensors to gw (they will be created as child devices)
        present(sensor, S_LIGHT);
      }
    }
    
    
    void loop() 
    {
      
    }
    
    void receive(const MyMessage &message) {
      // We only expect one type of message from controller. But we better check anyway.
      if (message.type==V_LIGHT) {
         // Change relay state
         digitalWrite(message.sensor-1+RELAY_1, message.getBool()?RELAY_ON:RELAY_OFF);
         // Store state in eeprom
         saveState(message.sensor, message.getBool());
         // Write some debug info
         Serial.print("Incoming change for sensor:");
         Serial.print(message.sensor);
         Serial.print(", New status: ");
         Serial.println(message.getBool());
       } 
    }
    

    and that of the gateway

    0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSM:RADIO:OK
    0;255;3;0;9;TSM:GW MODE
    0;255;3;0;9;TSM:READY
    IP: 192.168.1.15
    0;255;3;0;9;No registration required
    0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
    0;255;3;0;9;Eth: connect
    0;255;3;0;9;Eth: 0;0;3;0;2;
    0;255;3;0;9;Eth: 0;0;3;0;2;Get Version
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;TSP:SANCHK:OK
    

    the sketch use

    /**
     * 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-2015 Sensnology AB
     * Full contributor list: https://github.com/mysensors/Arduino/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 - Henrik EKblad
     * Contribution by a-lurker and Anticimex,
     * Contribution by Norbert Truchsess <norbert.truchsess@t-online.de>
     * Contribution by Tomas Hozza <thozza@gmail.com>
     *
     *
     * DESCRIPTION
     * The EthernetGateway sends data received from sensors to the ethernet link.
     * The gateway also accepts input on ethernet interface, which is then sent out to the radio network.
     *
     * The GW code is designed for Arduino 328p / 16MHz.  ATmega168 does not have enough memory to run this program.
     *
     * LED purposes:
     * - To use the feature, uncomment WITH_LEDS_BLINKING in MyConfig.h
     * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved
     * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly
     * - ERR (red) - fast blink on error during transmission error or recieve crc error
     *
     * See http://www.mysensors.org/build/ethernet_gateway for wiring instructions.
     *
     */
    
    // Enable debug prints to serial monitor
    #define MY_DEBUG 
    
    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_RFM69
    
    // When ENC28J60 is connected we have to move CE/CSN pins for NRF radio
    #define MY_RF24_CE_PIN 5
    #define MY_RF24_CS_PIN 6
    
    // Enable gateway ethernet module type 
    #define MY_GATEWAY_ENC28J60
    
    // Gateway IP address
    #define MY_IP_ADDRESS 192,168,1,15  
    
    // The port to keep open on node server mode / or port to contact in client mode
    #define MY_PORT 5003   
    
    // Controller ip address. Enables client mode (default is "server" mode). 
    // Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere. 
    //#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 254   
     
    // The MAC address can be anything you want but should be unique on your network.
    // Newer boards have a MAC address printed on the underside of the PCB, which you can (optionally) use.
    // Note that most of the Ardunio examples use  "DEAD BEEF FEED" for the MAC address.
    #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
    
    // Flash leds on rx/tx/err
    #define MY_LEDS_BLINKING_FEATURE
    // Set blinking period
    #define MY_DEFAULT_LED_BLINK_PERIOD 300
    
    // 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 
    
    #define MY_DEFAULT_ERR_LED_PIN 7  // Error led pin
    #define MY_DEFAULT_RX_LED_PIN  8  // Receive led pin
    #define MY_DEFAULT_TX_LED_PIN  9  // the PCB, on board LED
    
    #include <SPI.h>
    #include <UIPEthernet.h>
    #include <MySensors.h>
    
    
    void setup()
    {
    }
    
    void loop() {
    }```
    
      i add a capacitor 220U


  • the gateway log

    0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSM:RADIO:OK
    0;255;3;0;9;TSM:GW MODE
    0;255;3;0;9;TSM:READY
    IP: 192.168.1.15
    0;255;3;0;9;No registration required
    0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
    0;255;3;0;9;Eth: connect
    0;255;3;0;9;Eth: 0;0;3;0;2;
    0;255;3;0;9;Eth: 0;0;3;0;2;Get Version
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;TSP:SANCHK:OK
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;TSP:MSG:READ 123-123-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=123)
    0;255;3;0;9;TSP:CHKUPL:OK
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;TSP:MSG:READ 123-123-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=123)
    0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;TSP:MSG:READ 123-123-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=123)
    0;255;3;0;9;TSP:CHKUPL:OK
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;TSP:SANCHK:OK
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;TSP:MSG:READ 123-123-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=123)
    0;255;3;0;9;TSP:CHKUPL:OK
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;TSP:MSG:READ 123-123-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=123)
    0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;TSP:MSG:READ 123-123-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=123)
    0;255;3;0;9;TSP:CHKUPL:OK
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;TSP:MSG:READ 123-123-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=123)
    0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;TSP:SANCHK:OK
    


  • Do you have some spare-parts to use a different radio? My gateway has a radio with nrf24l01+pa+lna to increase the range. Maybe the gain is needed with the new API? I don't know. How far are the two objects?

    Simon



  • the gateway and the remote sensors are 100 cm I use these nRF24L01 I'm beginner with mysensors. I'm really frustrated that it does not work properly malgrer all my efforts to get it working properly alt text


  • Admin

    @Pictor-Lallemand

    Lets start with a simple setup:

    • all radio caps >= 22uF (ideal 100uF)
    • latest MySensors lib (i.e. 2.0.0)

    Gateway - Program GatewaySerial from the MySensors examples
    Node - Program this simple sketch:

    #define MY_DEBUG 
    #define MY_RADIO_NRF24
    #define MY_NODE_ID 100
    
    #include <MySensors.h>
    
    MyMessage msgGeneral(0, V_VAR1);
    uint32_t counter = 0, lastSend = 0;
    uint8_t rebootCounter = 5;
    
    void presentation() {
      sendSketchInfo("TestNode", "1.0");
      present(0, S_ARDUINO_NODE, "Counter");
    }
    
    void loop() {
       if (millis() - lastSend > 500) {
          msgGeneral.setDestination(GATEWAY_ADDRESS);
          send(msgGeneral.set(counter), true);
          counter = 0;
          lastSend = millis();
          if(!rebootCounter--) {
            hwReboot();
          }
       }
       counter++;
    }
    

    ...and post the debug log from both, GW and node.



  • same problem here:
    minimal example worked and I figured out that assignment of an ID helps 🙂
    Maybe I missed this point that I have to and that auto assignment doesn't work the way I thought.


  • Admin

    @hensing said:

    same problem here:
    minimal example worked and I figured out that assignment of an ID helps 🙂
    Maybe I missed this point that I have to and that auto assignment doesn't work the way I thought.

    Ok, so not related to UPL:Fail (as the title of this topic suggests)?



  • i add 22uF capacitor to node and GW

    debug gw

    0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSM:RADIO:OK
    0;255;3;0;9;TSM:GW MODE
    0;255;3;0;9;TSM:READY
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.0.0
    0;255;3;0;9;No registration required
    0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
    0;255;3;0;9;TSP:MSG:READ 100-100-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=100)
    0;255;3;0;9;TSP:CHKUPL:OK
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;TSP:MSG:READ 100-100-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=100)
    0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;TSP:MSG:READ 100-100-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=100)
    0;255;3;0;9;TSP:CHKUPL:OK
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;TSP:MSG:READ 100-100-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=100)
    0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;TSP:SANCHK:OK
    

    debug node

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    

    I'm really frustrated that it does not work correctly yet I applied literally your sugestions


  • Admin

    @Pictor-Lallemand ok, now next step: substitute all caps to 100uF (or if not available add a second 22uF in parallel). Please test and upload the same logs again. How do you power your nodes?



  • i add 2 capacitors of 22uf in serie the gateway is powered by my laptop
    the node is powered by my laptop for use serial debug

    debug node

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    

    gw debug

    0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSM:RADIO:OK
    0;255;3;0;9;TSM:GW MODE
    0;255;3;0;9;TSM:READY
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.0.0
    0;255;3;0;9;No registration required
    0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
    0;255;3;0;9;TSP:MSG:READ 100-100-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=100)
    0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;TSP:MSG:READ 100-100-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=100)
    0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;TSP:MSG:READ 100-100-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=100)
    0;255;3;0;9;TSP:CHKUPL:OK
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;TSP:MSG:READ 100-100-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=100)
    0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;TSP:SANCHK:OK
    

    Thank you for your support


  • Admin

    @Pictor-Lallemand Did you add the 22uF caps in parallel or in series? In parallel you get 44uF, in series ~11uF...



  • @tekka in parallel


  • Admin

    @Pictor-Lallemand ok, then try putting them further away and/or decrease TX_POWER for both nodes by setting

    #define MY_RF24_PA_LEVEL RF24_PA_LOW
    


  • @tekka I just try not conclusive

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    

    an idea ?


  • Admin

    @Pictor-Lallemand Looks to me like power issue and/or radio interference. If you have 100uF or larger caps, try replacing them. Also, is there a WiFi AP nearby?



  • @tekka it is always the same worries I added capacitors 330uF no wifi point naarby


  • Admin

    @Pictor-Lallemand What HW are you using & frequency?



  • @tekka What is the HW?


  • Hardware Contributor

    @Pictor-Lallemand
    HW= hardware 😉 FW for firmware or SW software
    that's weird you're not lucky on this, I agree with tekka it looks like hardware issue..Perhaps you could try to replace your usb cable, not sure but who knows, or maybe some bad dupont cable too (try with some other). I have already seen bad usb or dupont cables so...or maybe try with another radio module.



  • @tekka My HW is arduino pro mini 5v + ams1117 3,3V for radio module and NRF24L01 for radio



  • @tekka

    I weld son tips on antenna here debug

    node

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:FPAR:ACTIVE (msg not send)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:FPAR:ACTIVE (msg not send)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:FPAR:ACTIVE (msg not send)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:FPAR:ACTIVE (msg not send)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:FPAR:ACTIVE (msg not send)
    TSM:FPAR:OK
    TSM:ID
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=0,st=ok:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=0,st=ok:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=0,st=ok:0
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
    TSP:MSG:READ 0-0-100 s=255,c=3,t=25,pt=1,l=1,sg=0:1
    TSP:MSG:PONG RECV (hops=1)
    TSP:CHKUPL:OK
    TSM:UPL:OK
    TSM:READY
    TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100
    TSP:MSG:SEND 100-100-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=ok:2.0.0
    TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=ok:0
    TSP:MSG:READ 0-0-100 s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    TSP:MSG:READ 0-0-100 s=255,c=3,t=6,pt=0,l=1,sg=0:M
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=11,pt=0,l=8,sg=0,ft=0,st=fail:TestNode
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,ft=1,st=fail:1.0
    !TSP:MSG:SEND 100-100-0-0 s=0,c=0,t=17,pt=0,l=7,sg=0,ft=2,st=fail:Counter
    Request registration...
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=3,st=fail:2
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=4,st=fail:2
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=5,st=fail:2
    !TSM:UPL FAIL, SNP
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSP:SEND:TNR
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    Init complete, id=100, parent=255, distance=255, registration=1
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    

    gateway debug from MYSController

    8	13/08/2016 18:33:12	TX	-1	-1		-1	-1	NA (-1)	N/A	NA (-1)	-1			required
    10	13/08/2016 18:33:20	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    11	13/08/2016 18:33:22	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    12	13/08/2016 18:33:27	TX	100	100		BC	INTERNAL	C_INTERNAL	I_FIND_PARENT	STRING	0	NO		
    14	13/08/2016 18:33:27	TX	-1	-1		-1	-1	NA (-1)	N/A	NA (-1)	-1			(sender=100)
    17	13/08/2016 18:33:27	TX	0	0	100	100	INTERNAL	C_INTERNAL	I_FIND_PARENT_RESPONSE	BYTE	1	NO	ok	0
    18	13/08/2016 18:33:27	TX	100	100		BC	INTERNAL	C_INTERNAL	I_FIND_PARENT	STRING	0	NO		
    20	13/08/2016 18:33:27	TX	-1	-1		-1	-1	NA (-1)	N/A	NA (-1)	-1			(sender=100)
    23	13/08/2016 18:33:28	TX	0	0	100	100	INTERNAL	C_INTERNAL	I_FIND_PARENT_RESPONSE	BYTE	1	NO	ok	0
    24	13/08/2016 18:33:46	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    25	13/08/2016 18:34:01	TX	100	100		BC	INTERNAL	C_INTERNAL	I_FIND_PARENT	STRING	0	NO		
    27	13/08/2016 18:34:01	TX	-1	-1		-1	-1	NA (-1)	N/A	NA (-1)	-1			(sender=100)
    30	13/08/2016 18:34:01	TX	0	0	100	100	INTERNAL	C_INTERNAL	I_FIND_PARENT_RESPONSE	BYTE	1	NO	ok	0
    31	13/08/2016 18:34:01	TX	100	100		BC	INTERNAL	C_INTERNAL	I_FIND_PARENT	STRING	0	NO		
    33	13/08/2016 18:34:01	TX	-1	-1		-1	-1	NA (-1)	N/A	NA (-1)	-1			(sender=100)
    36	13/08/2016 18:34:02	TX	0	0	100	100	INTERNAL	C_INTERNAL	I_FIND_PARENT_RESPONSE	BYTE	1	NO	ok	0
    37	13/08/2016 18:34:08	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    38	13/08/2016 18:34:08	TX	100	100		BC	INTERNAL	C_INTERNAL	I_FIND_PARENT	STRING	0	NO		
    40	13/08/2016 18:34:08	TX	-1	-1		-1	-1	NA (-1)	N/A	NA (-1)	-1			(sender=100)
    43	13/08/2016 18:34:09	TX	0	0	100	100	INTERNAL	C_INTERNAL	I_FIND_PARENT_RESPONSE	BYTE	1	NO	ok	0
    44	13/08/2016 18:34:09	TX	100	100		BC	INTERNAL	C_INTERNAL	I_FIND_PARENT	STRING	0	NO		
    46	13/08/2016 18:34:09	TX	-1	-1		-1	-1	NA (-1)	N/A	NA (-1)	-1			(sender=100)
    49	13/08/2016 18:34:09	TX	0	0	100	100	INTERNAL	C_INTERNAL	I_FIND_PARENT_RESPONSE	BYTE	1	NO	ok	0
    50	13/08/2016 18:34:09	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    51	13/08/2016 18:34:10	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    52	13/08/2016 18:34:10	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    53	13/08/2016 18:34:11	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    54	13/08/2016 18:34:11	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    55	13/08/2016 18:34:11	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    56	13/08/2016 18:34:11	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    57	13/08/2016 18:34:11	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    58	13/08/2016 18:34:12	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    59	13/08/2016 18:34:12	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    60	13/08/2016 18:34:12	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    62	13/08/2016 18:34:12	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    63	13/08/2016 18:34:13	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    64	13/08/2016 18:34:13	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    65	13/08/2016 18:34:14	TX	100	100		0	INTERNAL	C_INTERNAL	I_DISCOVER_RESPONSE	BYTE	1	NO		0
    67	13/08/2016 18:34:15	TX	100	100		0	INTERNAL	C_INTERNAL	I_DISCOVER_RESPONSE	BYTE	1	NO		0
    69	13/08/2016 18:34:15	TX	100	100		0	INTERNAL	C_INTERNAL	I_DISCOVER_RESPONSE	BYTE	1	NO		0
    71	13/08/2016 18:34:16	TX	100	100		0	INTERNAL	C_INTERNAL	NA (24)	BYTE	1	NO		1
    72	13/08/2016 18:34:16	TX	-1	-1		-1	-1	NA (-1)	N/A	NA (-1)	-1			hops=1)
    73	13/08/2016 18:34:16	TX	0	0	100	100	INTERNAL	C_INTERNAL	NA (25)	BYTE	1	NO	ok	1
    74	13/08/2016 18:34:16	TX	100	100		0	INTERNAL	C_INTERNAL	I_SIGNING_PRESENTATION	CUSTOM	2	NO		0100
    75	13/08/2016 18:34:16	TX	0	0	100	100	INTERNAL	C_INTERNAL	I_SIGNING_PRESENTATION	CUSTOM	2	NO	ok	0100
    76	13/08/2016 18:34:16	TX	100	100		0	INTERNAL	C_PRESENTATION	S_ARDUINO_NODE	STRING	5	NO		2.0.0
    78	13/08/2016 18:34:16	TX	100	100		0	INTERNAL	C_INTERNAL	I_CONFIG	BYTE	1	NO		0
    81	13/08/2016 18:34:16	TX	0	0	100	100	INTERNAL	C_INTERNAL	I_CONFIG	STRING	1	NO	ok	M
    84	13/08/2016 18:36:27	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    

  • Admin

    @Pictor-Lallemand Looks to me like a power issue, not an antenna issue.

    Half of the messages are OK, and then all of a sudden they all fail:

    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
    TSP:MSG:READ 0-0-100 s=255,c=3,t=25,pt=1,l=1,sg=0:1
    TSP:MSG:PONG RECV (hops=1)
    TSP:CHKUPL:OK
    TSM:UPL:OK
    TSM:READY
    TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100
    TSP:MSG:SEND 100-100-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=ok:2.0.0
    TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=ok:0
    TSP:MSG:READ 0-0-100 s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    TSP:MSG:READ 0-0-100 s=255,c=3,t=6,pt=0,l=1,sg=0:M
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=11,pt=0,l=8,sg=0,ft=0,st=fail:TestNode
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,ft=1,st=fail:1.0
    !TSP:MSG:SEND 100-100-0-0 s=0,c=0,t=17,pt=0,l=7,sg=0,ft=2,st=fail:Counter
    

    At what frequency are you running your minis? Out of curiosity, can you post a pic of your node+radio (ideally with a pic of the cap) and GW+radio - this may give additional info.



  • @tekka

    my node

    2_1471165756602_IMG_3949.JPG

    1_1471165756602_IMG_3948.JPG

    my gateway
    0_1471165756600_IMG_3947.JPG


  • Admin

    @Pictor-Lallemand ok, now upload this sketch to both nodes and post the debug output:

    #define MY_CORE_ONLY
    #include <MySensors.h>
    void setup(){
      MY_SERIALDEVICE.begin(115200);
      MY_SERIALDEVICE.println(F("**********"));
      MY_SERIALDEVICE.println(__FILE__);
      MY_SERIALDEVICE.println(MYSENSORS_LIBRARY_VERSION);
      MY_SERIALDEVICE.println(hwFreeMem());
      MY_SERIALDEVICE.println(hwCPUVoltage());
      MY_SERIALDEVICE.println(hwCPUFrequency());
      MY_SERIALDEVICE.println(F_CPU);
      MY_SERIALDEVICE.println(F("**********"));
    }
    void loop(){}
    


  • @tekka my debug output

    **********
    C:\Users\victor\Documents\Arduino\sketch_aug14c\sketch_aug14c.ino
    2.0.0
    1703
    5001
    164
    16000000
    **********
    

  • Admin

    @Pictor-Lallemand and from your GW?



  • @tekka

    debug gw

    **********
    C:\Users\victor\Documents\Arduino\sketch_aug14b\sketch_aug14b.ino
    2.0.0
    1703
    4728
    175
    16000000
    **********
    

  • Admin

    @Pictor-Lallemand Ok output looks good, GW is running at a slightly higher frequency - but this can also be an artefact. I assume your radios run at 3V3?

    Let's try these things:

    1. increase the RF24 data rate to 1MBPS using
    #define MY_RF24_DATARATE RF24_1MBPS
    
    1. If (1) doesn't improve the radio transmissions, change the RF24 channel using
    #define MY_RF24_CHANNEL 37
    


  • @tekka I already used the command 1Mbit



  • after having followed your two board this is what I get the node code

    debug

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=101)
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=101)
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=101)
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSP:MSG:READ 0-0-101 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSM:FPAR:OK
    TSM:ID
    TSP:MSG:READ 0-0-101 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:CHKID:OK (ID=101)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=1,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=2,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=3,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=4,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=5,st=fail:0
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=101)
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=101)
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSP:MSG:READ 0-0-101 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-101 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:FPAR:ACTIVE (msg not send)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:FPAR:ACTIVE (msg not send)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=255,pt=0,l=3,sg=0:255
    TSP:MSG:BC
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:FPAR:ACTIVE (msg not send)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:FPAR:ACTIVE (msg not send)
    TSM:FPAR:OK
    TSM:ID
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=0,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=1,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=2,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=3,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=4,st=fail:0
    TSM:CHKID:OK (ID=101)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=5,st=fail:1
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=6,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=7,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=8,st=fail:0
    TSP:MSG:READ 0-0-101 s=255,c=3,t=25,pt=1,l=1,sg=0:1
    TSP:MSG:PONG RECV (hops=1)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=9,st=fail:0
    TSP:CHKUPL:OK
    TSM:UPL:OK
    TSM:READY
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=10,st=fail:0100
    !TSP:MSG:SEND 101-101-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,ft=11,st=fail:2.0.0
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,ft=12,st=fail:0
    !TSM:UPL FAIL, SNP
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    Request registration...
    !TSP:SEND:TNR
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSP:SEND:TNR
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSP:SEND:TNR
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSP:SEND:TNR
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    Init complete, id=101, parent=255, distance=255, registration=1
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    
    

    the code of node

    #define MY_DEBUG 
    #define MY_RADIO_NRF24
    #define MY_NODE_ID 101
    #define MY_RF24_PA_LEVEL RF24_PA_LOW
    #define MY_RF24_DATARATE RF24_1MBPS
    #define MY_RF24_CHANNEL 37
    
    #include <MySensors.h>
    
    MyMessage msgGeneral(0, V_VAR1);
    uint32_t counter = 0, lastSend = 0;
    uint8_t rebootCounter = 5;
    
    void presentation() {
      sendSketchInfo("TestNode", "1.0");
      present(0, S_ARDUINO_NODE, "Counter");
    }
    
    void loop() {
       if (millis() - lastSend > 500) {
          msgGeneral.setDestination(GATEWAY_ADDRESS);
          send(msgGeneral.set(counter), true);
          counter = 0;
          lastSend = millis();
          if(!rebootCounter--) {
            hwReboot();
          }
       }
       counter++;
    }
    
    

    the gateway code

      /**
     * 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-2015 Sensnology AB
     * Full contributor list: https://github.com/mysensors/Arduino/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.
     *
     *******************************
     *
     * DESCRIPTION
     * The ArduinoGateway prints data received from sensors on the serial link. 
     * The gateway accepts input on seral which will be sent out on radio network.
     *
     * The GW code is designed for Arduino Nano 328p / 16MHz
     *
     * Wire connections (OPTIONAL):
     * - Inclusion button should be connected between digital pin 3 and GND  
     * - RX/TX/ERR leds need to be connected between +5V (anode) and digital pin 6/5/4 with resistor 270-330R in a series
     *
     * LEDs (OPTIONAL):
     * - To use the feature, uncomment MY_LEDS_BLINKING_FEATURE in MyConfig.h
     * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved
     * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly
     * - ERR (red) - fast blink on error during transmission error or recieve crc error 
     * 
     */
    
    // Enable debug prints to serial monitor
    #define MY_DEBUG 
    
    
    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_RFM69
    
    // 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_DATARATE RF24_1MBPS
    #define MY_RF24_CHANNEL 37
    // Enable serial gateway
    #define MY_GATEWAY_SERIAL
    
    // Define a lower baud rate for Arduino's running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender)
    #if F_CPU == 8000000L
    #define MY_BAUD_RATE 38400
    #endif
    
    // Flash leds on rx/tx/err
    #define MY_LEDS_BLINKING_FEATURE
    // Set blinking period
    #define MY_DEFAULT_LED_BLINK_PERIOD 300
    
    // Inverses the behavior of leds
    //#define MY_WITH_LEDS_BLINKING_INVERSE
    
    // 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 60 
    // Digital pin used for inclusion mode button
    #define MY_INCLUSION_MODE_BUTTON_PIN  3 
    
    // 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
    
    #include <SPI.h>
    #include <MySensors.h>  
    
    void setup() { 
      // Setup locally attached sensors
    }
    
    void presentation() {
     // Present locally attached sensors 
    }
    
    void loop() { 
      // Send locally attached sensor data here 
    }
    
    
    
    
    
    

    the debug gateway

    0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSM:RADIO:OK
    0;255;3;0;9;TSM:GW MODE
    0;255;3;0;9;TSM:READY
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.0.0
    0;255;3;0;9;No registration required
    0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
    0;255;3;0;9;TSP:MSG:READ 101-101-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=101)
    0;255;3;0;9;TSP:CHKUPL:OK
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;!TSP:MSG:SEND 0-0-101-101 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=fail:0
    0;255;3;0;9;TSP:MSG:READ 101-101-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=101)
    0;255;3;0;9;TSP:CHKUPL:OK
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;!TSP:MSG:SEND 0-0-101-101 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=fail:0
    0;255;3;0;9;TSP:SANCHK:OK
    
    


  • @tekka

    yes my radio module operates on 3.3V ams1117 I use the regulator to reduce the voltage 3.3V


Log in to reply
 

Suggested Topics

  • 3
  • 1
  • 2
  • 5
  • 6

2
Online

11.4k
Users

11.1k
Topics

112.7k
Posts