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!
Gibber
@Gibber
Best posts made by Gibber
-
RE: Cannot compile on Lolin S2 Mini with USBCDC
Latest posts made by Gibber
-
RE: Request the status of a Home Assistant entity that is not defined in the MySensors integration?
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? -
Request the status of a Home Assistant entity that is not defined in the MySensors integration?
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?
-
RE: RSSI affects Sleep Timer??
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). -
RE: RFM69 bitrate settings
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 -
RE: How to change the RFM69 Modem configuration?
Working great! Thanks very much!
-
How to change the RFM69 Modem configuration?
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. -
RSSI affects Sleep Timer??
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. -
RE: Optimistic parameter in Home Assistant
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? -
RE: Cannot compile on Lolin S2 Mini with USBCDC
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! -
Cannot compile on Lolin S2 Mini with USBCDC
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 providedexit 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.