[Solved]UPL:Fail
Troubleshooting
47
Posts
7
Posters
15.2k
Views
5
Watching
-
@tekka my debug output
********** C:\Users\victor\Documents\Arduino\sketch_aug14c\sketch_aug14c.ino 2.0.0 1703 5001 164 16000000 ********** -
@tekka my debug output
********** C:\Users\victor\Documents\Arduino\sketch_aug14c\sketch_aug14c.ino 2.0.0 1703 5001 164 16000000 ********** -
debug gw
********** C:\Users\victor\Documents\Arduino\sketch_aug14b\sketch_aug14b.ino 2.0.0 1703 4728 175 16000000 ********** -
debug gw
********** C:\Users\victor\Documents\Arduino\sketch_aug14b\sketch_aug14b.ino 2.0.0 1703 4728 175 16000000 **********@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:
- increase the RF24 data rate to 1MBPS using
#define MY_RF24_DATARATE RF24_1MBPS- 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:TNRthe 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 -
yes my radio module operates on 3.3V ams1117 I use the regulator to reduce the voltage 3.3V