Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
G

Gibber

@Gibber
About
Posts
15
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Extraneous info in Debug log
    G Gibber

    When I enable debug logging in the MySensors Home Assistant integration I notice I get a fair amount of entries that seem to have nothing to do with MySensors. This includes notification updates, WiFi connection failures, etc.. Is this normal?

    Troubleshooting debug log

  • Remotes will not connect after latest compile
    G Gibber

    Thanks for the quick response.
    Yep! When I updated the IDE I forgot to modify the settings (915 MHz) in the new myconfig.h file.
    Doh!
    All good now.

    Troubleshooting

  • Remotes will not connect after latest compile
    G Gibber

    I have 3 remote nodes working off one gateway. The gateway is a ModeMCU 1.0 and remotes are Arduino Pro Minis. Radios are RFM69s. All 3 remotes have run great for about a year.

    Yesterday I made a minor change in the code that reads an analog voltage on one of the remote units. I compiled the new code and received an error message that “RFM69_getReceivingRSSI()” statement should be changed to “transportGetReceivingRSSI()” so I made that changed and the code compiled.
    I uploaded the new code and now that node will not connect to the gateway. The serial monitor log shows repeated TSM:FPAR:NO REPLY and then TSM:FPAR:FAIL. The other two remotes are still operating normally.

    I tried the troubleshooting steps including clearing the eeprom, and double checked the IDE settings, but still cannot connect. I also powered down the two working remotes and checked with MySController and all I see in the event log is
    “Gateway startup complete” and “2.3.2” messages. No other nodes.

    I had updated my Arduino IDE since the last programming was done about a year ago, and I did not track which versions I was using then. Current versions are IDE – 2.2.1, Pro Mini board – 1.8.6, and NodeMCU board – 3.1.2, MySensors library 2.3.2.

    I then decided to try monitoring one of the working remotes so I uncommented the debug statement and compiled (got the same warning about “RFM69_getReceivingRSSI()”). Now that remote will not connect either.

    I appears that the problem is related to my IDE but I cannot determine what it may be.

    Does anyone know what change would have triggered the “RFM69_getReceivingRSSI()” error and is it possible that that change is also causing the newly compiled code to not connect?

    Troubleshooting

  • Forum Search not working?
    G Gibber

    Thanks! Thought I was losing it. :+1:

    Troubleshooting

  • Forum Search not working?
    G Gibber

    Is the Forum Search feature broken?
    I am logged in and It does not matter what I enter in the search field, or the search settings, the result is always "no matches found"!

    Troubleshooting

  • Request the status of a Home Assistant entity that is not defined in the MySensors integration?
    G Gibber

    Thanks for the response. Can you be more specific about how to request the status from the node?
    My understanding is the request format is:
    request (Child_ID, VariableType);
    But if the Home Assistant entity that I want to request the status of is not a MySensors entity it will not have a Child_ID. So how do I format the request statement?

    Home Assistant

  • Request the status of a Home Assistant entity that is not defined in the MySensors integration?
    G Gibber

    I am trying to use a battery powered node to control a window blind. The sleep function does not cooperate well with a control entity due to the sleep delay interfering with the acknowledgement timing.
    I saw in another post that there is no "optimistic" mode available with the MySensor integration.

    Does anyone know if it is possible for a node to request the status of home assistant entity that is not defined as part of the MySensor integration?

    Home Assistant

  • RSSI affects Sleep Timer??
    G Gibber

    Thanks, the 600000 was a typo. Should have read 300000.
    I finally got time to set up a terminal on my laptop so I could capture the serial monitor output from the node and then processed that with the log parser.
    I could see the node repeatedly attempting to find parent, failing, and incrementing the "transport failure counter", waiting 10 seconds, then trying again. There was also a sequence where 4 failed find parent attempts incremented a "consecutive failure counter". And another where it incremented a "failed uplink counter". I also saw the node initiating the 5 minute sleep interval however the pre-sleep message also failed and hence the node never did get to snooze, it just went back to finding parent. After a fair amount of analysis I was not able to determine what was "special" about the instance when it actually connected or why it occurred at roughly 5 times the normal sleep interval.
    I reviewed the MyTransport section of the API documentation but could not find any details that helped.
    In the end I lost interest as I decided to just reduce the modem bit rate to the point where the radio would connect reliably. I was surprised to see the node connecting with RSSI as low as -106 dB ( at a bit rate of 2400/4800).

    Troubleshooting

  • RFM69 bitrate settings
    G Gibber

    And just to add a clarification, do not modify MyConfig.h. Put the define statement into the sketch for your node (somewhere before line: #include <MySensors.h>), and don't forget to modify your gateway code as well.
    0

    General Discussion

  • How to change the RFM69 Modem configuration?
    G Gibber

    Working great! Thanks very much!

    Troubleshooting

  • How to change the RFM69 Modem configuration?
    G Gibber

    I would like to try a lower transmission rate on my RFM69 radios. At the moment I only have one gateway and one sensor.
    I tried uncommenting line 801 of Myconfig.h and changing it to #define MY_RFM69_MODEM_CONFIGURATION (RFM69_FSK_BR9_6_FD19_2)
    I then reloaded the code for the serial gateway to my gateway node and the code to my sensor node as well.
    After the change I was unable to get the sensor to connect. I got repeated TSM:FPAR:NO REPLY.
    Am I missing a step here? Is there any reason this would not change the bit rate as desired?
    As soon as I commented out line 810 and reloaded the code to both nodes connection was restored.

    Troubleshooting

  • RSSI affects Sleep Timer??
    G Gibber

    This seems really strange! I have a battery powered project using an Arduino Pro Mini and an RFM69 radio. It operates a servo that opens/closes my Venetian blinds.
    I have it set to smartSleep for 5 minutes (sleeptime = 600000) between cycles to reduce battery drain. It works great in my workroom where it is within a few feet of the gateway and RSSI is about -45 but as soon as I take it up to the the living room where the RSSI is around -85 the unit only updates every 25 minutes. Bring it to the workroom again and it immediately reverts to 5 minute cycles.
    I thought -85 was still a reasonably good level as I do not require high bit rate transmission. And even so, how can the RSSI affect the sleep time?
    The MySensors code is version 2.3.2 and I am using a serial gateway.

    Troubleshooting

  • Optimistic parameter in Home Assistant
    G Gibber

    I have encountered the same situation trying to use a switch to control some blinds.
    Has there been any update on this issue from either Home Assistant or MySensors, or any workaround developed?

    Home Assistant

  • Cannot compile on Lolin S2 Mini with USBCDC
    G Gibber

    Hi, and thanks for the quick response.
    I tried the roll back but found that the Lolin S2 Mini was not an option in that version. I tried the Wemos D1 ESP32 and it would compile but the upload failed "Chip is unknown ESP32".
    I am going to try and use an external FTDI to avoid issues with USBCDC. If that does not work I will just use the D32 module.
    Thanks for the great body of work and support. I cannot even imagine how much work it must be to try and cover all the different chips and modules.
    The integration with Home Assistant makes this a breeze!

    Troubleshooting

  • Cannot compile on Lolin S2 Mini with USBCDC
    G Gibber

    I am trying to build a button sensor on a Lolin S2 mini board. I am using the Binary Switch Sleep Sensor example code from the MySensors library.
    When I attempt to compile the code I get an error message:

    In file included from c:\Users\Rick\Documents\Arduino\libraries\MySensors/MySensors.h:61,
    from C:\Users\Rick\Documents\Arduino\S2 mini BinarySwitchSensor\S2 mini BinarySwitchSensor.ino:44:
    c:\Users\Rick\Documents\Arduino\libraries\MySensors/hal/architecture/ESP32/MyHwESP32.cpp: In function 'bool hwInit()':
    c:\Users\Rick\Documents\Arduino\libraries\MySensors/hal/architecture/ESP32/MyHwESP32.cpp:30:48: error: no matching function for call to 'USBCDC::begin(long unsigned int, int)'
    MY_SERIALDEVICE.begin(MY_BAUD_RATE, SERIAL_8N1);
    ^
    In file included from C:\Users\Rick\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/USB.h:21,
    from C:\Users\Rick\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/HardwareSerial.h:193,
    from C:\Users\Rick\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/Arduino.h:174,
    from C:\Users\Rick\AppData\Local\Temp\arduino-sketch-A4C2CB8DD1162638CC7D73951F564058\sketch\S2 mini BinarySwitchSensor.ino.cpp:1:
    C:\Users\Rick\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/USBCDC.h:70:10: note: candidate: 'void USBCDC::begin(long unsigned int)'
    void begin(unsigned long baud=0);
    ^~~~~
    C:\Users\Rick\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/USBCDC.h:70:10: note: candidate expects 1 argument, 2 provided

    exit status 1

    Compilation error: exit status 1

    If I disable "USB CDC On Boot" under Tools, the code will compile and upload but then I am unable to use serial monitor to debug as there is no port to connect to.

    The exact same code compiles and runs just fine on a Lolin D32.

    I am using Arduino IDE 2.0.2 running on Windows 10. Board library is esp32 2.0.5. The radio is an RFM69CW.
    I found a reference that suggested adding a Serial.begin() statement to the setup to initiate a serial port after the restart but this did not work.
    I also found it odd that I could compile and run a simple program that reported the SPI pin assignments via serial monitor and it worked fine!
    Any suggestions appreciated.

    Troubleshooting
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular