Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • Pro Mini issues

    12
    0 Votes
    12 Posts
    2k Views
    dpconsD
    This problem has been resolved. It appears my ANKER 10 port USB Hub is the problem. It's associated with the lower 4 ports of the hub. The remaining 6 are OK. I'm not sure what the actual problem is yet. The hub has a 60W power supply attached so I doubt it's a power issue...maybe noise? I now have a 10 port Amazon Hub which works well. As for the DTR signal, I've always used it and have seldom used the reset buttons. Also, I think most of the Arduinos and clones have it implemented through the serial convertor chip as well. It's also on all the ESP32 and ESP 8266 clones I've used. Again, thanks everyone for your comments and suggestions.
  • Help with OTA

    9
    2
    0 Votes
    9 Posts
    1k Views
    alexsh1A
    @tekka Now it says "403195 OTA:FWP:UPDATE SKIPPED" when try to update it. EDIT: Despite getting 48732 OTA:FWP:RECV B=0000 48736 OTA:FWP:FW END 48865 OTA:CRC:B=0050,C=46D4,F=46D4 48867 OTA:FWP:CRC OK Firmware is not updated
  • Can I troubleshoot my Sensor Code without a radio?

    3
    0 Votes
    3 Posts
    618 Views
    JohnRobJ
    @mfalkvidd Thank you ! that did the trick. John
  • How many servers in the network?

    4
    0 Votes
    4 Posts
    793 Views
    pgvP
    Hi Yveaux It's all OK .... just a little YAML format problem with HA. Seems to be OK now. Thanks again for your help Cheers
  • WS2812FX, MySensors and "Expansion of macro F"

    4
    0 Votes
    4 Posts
    2k Views
    SushukkaS
    @mfalkvidd Thanks mfalkvidd...the oldest mistake one can make and I'm still falling to it regularly. Here are the links: Link to the library: https://github.com/kitesurfer1404/WS2812FX/issues/83 Link to the problem workaround: https://github.com/kitesurfer1404/WS2812FX
  • Protecting a lock switch securely with MySensors and Domoticz

    22
    0 Votes
    22 Posts
    5k Views
    monteM
    @sushukka I wrote my solution for this problem as I also have a lock-node to secure :) Look, maybe you will find it useful. https://forum.mysensors.org/topic/9204/secure-node-encrypted-communication-aes-128
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Add MySensor board on macOS

    5
    0 Votes
    5 Posts
    810 Views
    alexsh1A
    @gerrit_jan just read on "Board Add-Ons with Arduino Board Manager" from here: https://learn.sparkfun.com/tutorials/installing-arduino-ide This is a detailed guide, but in two words after adding the link, you have to go to the board section and manually download MySensors boards (one for AVR (Sensebender Micro) and one for SAMD (Sensebender GW))
  • Sensor not booting up...

    4
    0 Votes
    4 Posts
    864 Views
    mfalkviddM
    @marco-realacci the setup you're describing sounds good. The ftdi232 chip can deliver 50mA which is sufficient as long as the nrf24 is a "normal" and not pa+lna. So yes, if there was an accident a broken chip is the most probable cause.
  • [SOLVED] W5100 Ethernet gateway with RFM69 Radio fails at init

    31
    0 Votes
    31 Posts
    11k Views
    JohnRobJ
    @Falcogeorge I have an RFM69 on a Anarduino (basically a AT328p with solder pads for the RFM69. I started with MySensors V2.2.0 My RFM69 NSS is connected to D10. All works fine. My setup code is below. One note, the default debug baud is 115k. This is likely too fast for some with lower speed clocks. #define MY_DEBUG #define MY_BAUD_RATE (9600ul) // === Hardware / MySensors Initialization ================ // ======================================================== #define MY_RADIO_RFM69 #define MY_RFM69_FREQUENCY RFM69_915MHZ #include <MySensors.h> // === Node Initialization ================================ // ======================================================== #define CHILD_ID 5 #define sensortype S_MULTIMETER #define LEDPIN 9 //PB1 is pin 9 on ProMini #define LED_TST A0 #define NODE_TXT "Counting_test_Node" uint8_t MyCount; uint8_t ACK_Result; uint8_t NACK_Count; MyMessage msg_Voltage(CHILD_ID, V_VOLTAGE);
  • Clarifications on MY_SIGNING_WEAK_SECURITY

    13
    0 Votes
    13 Posts
    1k Views
    AnticimexA
    We will address the communications overhead for security 3.0 but it will not be completely eliminated. Some handshaking will always be needed but there will be a ttl counter so one established token can be reused for a limited time/uses. Keep a look out on github if you want to follow the development for this. There will soon be tickets for the various features planned. Users are welcome to provide constructive feedback to these tickets, but the core team reserve the right of deciding ;)
  • Which procedure for signature

    2
    0 Votes
    2 Posts
    486 Views
    gohanG
    That is what I did, I created the keys on the rpi gateway and added them to the securitypersonalyzer
  • ESP32 Simple Web Server Question

    9
    0 Votes
    9 Posts
    2k Views
    scalzS
    so you're not using MySensors lib ?? I don't see any reference to it in your code.. If you're trying to get the simple arduino webserver example running to actuate your garage, you may get more luck asking in espressif forum/arduino section or on their git. you might also find a bunch of ESP32 howtos on web for this. Edit: @gohan you beat me :)
  • [solved] !TSM:FPAR:NO REPLY if using #define MY_RFM69_NEW_DRIVER

    6
    0 Votes
    6 Posts
    2k Views
    alexsh1A
    @gohan Yeah, after hours of troubleshooting there is always someone one learns :)))
  • Adding Door sensor to Multisensor not working...

    8
    0 Votes
    8 Posts
    2k Views
    S
    Okay I figured this out! The problem was actually with where I was defining the pins. They where withing the if statement for the DHT warning. I have moved them outside that statement and it seems to be working fine. /** * 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 * Motion Sensor example using HC-SR501 * http://www.mysensors.org/build/motion * */ // Enable debug prints #define MY_DEBUG #define MY_NODE_ID 233 #define MY_PARENT_NODE_ID 0 #define MY_PARENT_NODE_IS_STATIC // Enable and select radio type attached #define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 #include <MySensors.h> #include <SPI.h> #include <DHT.h> #include <Bounce2.h> unsigned long SLEEP_TIME = 120000; // Sleep time between reports (in milliseconds) #define DIGITAL_INPUT_SENSOR 2 // The digital input you attached your motion sensor. (Only 2 and 3 generates interrupt!) #define DIGITAL_INPUT_SENSOR2 3 // The input for door sensor #define CHILD_ID_MOTION 1 // Id of the sensor child #define CHILD_ID_HUM 2 #define CHILD_ID_TEMP 3 #define CHILD_ID_DOOR 4 // Set this to the pin you connected the DHT's data pin to #define DHT_DATA_PIN 4 // Set this offset if the sensor has a permanent small offset to the real temperatures #define SENSOR_TEMP_OFFSET 0 // Force sending an update of the temperature after n sensor reads, so a controller showing the // timestamp of the last update doesn't show something like 3 hours in the unlikely case, that // the value didn't change since; // i.e. the sensor would force sending an update every UPDATE_INTERVAL*FORCE_UPDATE_N_READS [ms] static const uint8_t FORCE_UPDATE_N_READS = 10; float lastTemp; float lastHum; uint8_t nNoUpdatesTemp; uint8_t nNoUpdatesHum; bool metric = true; MyMessage msgHum(CHILD_ID_HUM, V_HUM); MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP); // Initialize motion message MyMessage msg(CHILD_ID_MOTION, V_TRIPPED); MyMessage msgDoor(CHILD_ID_DOOR, V_TRIPPED); DHT dht; void presentation() { // Send the sketch version information to the gateway sendSketchInfo("TemperatureAndHumidity", "1.1"); // Register all sensors to gw (they will be created as child devices) present(CHILD_ID_HUM, S_HUM); present(CHILD_ID_TEMP, S_TEMP); present(CHILD_ID_MOTION, S_MOTION); present(CHILD_ID_DOOR, S_DOOR); metric = getControllerConfig().isMetric; } void setup() { dht.setup(DHT_DATA_PIN); // set data pin of DHT sensor if (1200000 <= dht.getMinimumSamplingPeriod()) { Serial.println("Warning: UPDATE_INTERVAL is smaller than supported by the sensor!"); } // Sleep for the time of the minimum sampling period to give the sensor time to power up // (otherwise, timeout errors might occure for the first reading) sleep(dht.getMinimumSamplingPeriod()); pinMode(DIGITAL_INPUT_SENSOR, INPUT); // sets the motion sensor digital pin as input pinMode(DIGITAL_INPUT_SENSOR2, INPUT); // sets the door sensor digital pin as input digitalWrite(DIGITAL_INPUT_SENSOR2,HIGH); // Activate internal pull-up } void loop() { // Force reading sensor, so it works also after sleep() dht.readSensor(true); // Get temperature from DHT library float temperature = dht.getTemperature(); if (isnan(temperature)) { Serial.println("Failed reading temperature from DHT!"); } else if (temperature != lastTemp || nNoUpdatesTemp == FORCE_UPDATE_N_READS) { // Only send temperature if it changed since the last measurement or if we didn't send an update for n times lastTemp = temperature; if (!metric) { temperature = dht.toFahrenheit(temperature); } // Reset no updates counter nNoUpdatesTemp = 0; temperature += SENSOR_TEMP_OFFSET; send(msgTemp.set(temperature, 1)); #ifdef MY_DEBUG Serial.print("T: "); Serial.println(temperature); #endif } else { // Increase no update counter if the temperature stayed the same nNoUpdatesTemp++; } // Get humidity from DHT library float humidity = dht.getHumidity(); if (isnan(humidity)) { Serial.println("Failed reading humidity from DHT"); } else if (humidity != lastHum || nNoUpdatesHum == FORCE_UPDATE_N_READS) { // Only send humidity if it changed since the last measurement or if we didn't send an update for n times lastHum = humidity; // Reset no updates counter nNoUpdatesHum = 0; send(msgHum.set(humidity, 1)); #ifdef MY_DEBUG Serial.print("H: "); Serial.println(humidity); #endif } else { // Increase no update counter if the humidity stayed the same nNoUpdatesHum++; } // Read digital motion value bool tripped = digitalRead(DIGITAL_INPUT_SENSOR) == HIGH; Serial.println(tripped); send(msg.set(tripped?"1":"0")); // Send tripped value to gw // Read digital door value bool tripped2 = digitalRead(DIGITAL_INPUT_SENSOR2) == HIGH; Serial.println(tripped2); send(msgDoor.set(tripped2?"1":"0")); // Send tripped value to gw // Sleep until interrupt comes in on motion sensor. Send update every two minute. sleep(digitalPinToInterrupt(DIGITAL_INPUT_SENSOR), CHANGE, digitalPinToInterrupt(DIGITAL_INPUT_SENSOR2), CHANGE, SLEEP_TIME); } Thanks again for all your help everyone!
  • RFM69 not initialising (required reset could be the cause)

    rfm69hw
    7
    0 Votes
    7 Posts
    6k Views
    C
    I had the same issue today with a RFM69HW connected to a Wemos D1 Mini. The above solution worked, thank you so much. I had no idea what was going on. I also have a RFM69W connected to a generic ESP12-E and with the same code I didn't need to reset. Seems to be hardware related.
  • Node randomly disconnecting

    2
    0 Votes
    2 Posts
    579 Views
    mfalkviddM
    Hi @daniele-frigo, welcome to the MySensors community! The best way to debug is to get the debug log from the node. Either by connecting a computer and keeping it on until the node acts up, or by using a standalone logger like this https://www.openhardware.io/view/532/The-Logger-Machine-Short-and-long-term-serial-logging
  • This topic is deleted!

    3
    0 Votes
    3 Posts
    47 Views
  • 0 Votes
    10 Posts
    2k Views
    C
    @mfalkvidd the image is based on resin.io. I will do some more digging but your advice might be the best option. I really appreciate your help on this. I will report back what I find. Thanks!
  • Burn MYSBootloader error in Arduino IDE

    4
    0 Votes
    4 Posts
    774 Views
    SoloamS
    The problem is that the boards.txt is declaring the use of the tool avrdude, in the sketchbook the IDE is not able to find the avrdude, so the error. That's what you get when you mix a Arduino noob with a linux noob :) Thank You

27

Online

11.7k

Users

11.2k

Topics

113.1k

Posts