Generally, the problem is solved. All you need to do is initialize the PHY for ESP32 using the ETH.h library from the Espresiff package. Then it's a matter of eliminating the Wi-Fi initialization that is automatically started for ESP32. Interestingly, you can use two IP addresses at the same time, one from the PHY and the other from Wi-Fi - of course, Mysensors responds to both. If anyone is interested in the solution - I invite you to talk. I started Mysensors on the PHY of the Kicony KC868-A16 board and it works great.
Marcin
@Marcin
Best posts made by Marcin
-
RE: ESP32 Wired (no WiFi)
-
Compile Error, Mysensors 2.3.2
Hi.
If i Try compile sketch with mysensors 2.3.0 - everything is ok. But after upgrade to 2.3.1 or 2.3.2 i have this error. Where is the problem ?In file included from C:\Users\user\Documents\Arduino\libraries\MySensors/MySensors.h:433:0, from C:\Users\user\Documents\Arduino\rolety_stm_new\rolety_stm_new.ino:23: C:\Users\user\Documents\Arduino\libraries\MySensors/core/MySensorsCore.cpp: In function 'bool present(uint8_t, mysensors_sensor_t, const __FlashStringHelper*, bool)': C:\Users\useri\Documents\Arduino\libraries\MySensors/core/MySensorsCore.cpp:391:111: error: conditional expression between distinct pointer types 'const char*' and 'const __FlashStringHelper*' lacks a cast [-fpermissive] requestEcho).set(childSensorId == NODE_SENSOR_ID ? F(" MYSENSORS_LIBRARY_VERSION "): description)); ^ exit status 1
Latest posts made by Marcin
-
S_GAS, send and request problem
I register the S_GAS variable, then set Mymsg as V_VOLUME - I send the data to Domoticz as V_VOLUME. In domoticz I define the sensor as GAS so domoticz presents the data in m3. But when NOD sends a "request" to domoticz - domoticz does not send anything as a V_VOLUME or V_FLOW variable, but only V_VAR1 and it is a value in KWH instead of M3. Why is this happening? Domoticz version compiled on November 28, 2024 from sources. Mysensors 2.3.2. I'm trying to make a gas consumption sensor - which after restarting the node will first read the last value from Domoticz and then provide full readings - Domoticz does not accept incremental values for S_GAS.
-
RE: ESP32 Wired (no WiFi)
Generally, the problem is solved. All you need to do is initialize the PHY for ESP32 using the ETH.h library from the Espresiff package. Then it's a matter of eliminating the Wi-Fi initialization that is automatically started for ESP32. Interestingly, you can use two IP addresses at the same time, one from the PHY and the other from Wi-Fi - of course, Mysensors responds to both. If anyone is interested in the solution - I invite you to talk. I started Mysensors on the PHY of the Kicony KC868-A16 board and it works great.
-
RE: LAN8720A - will mysensors work with this module
Thanks for the answer. I meant that Mysensors has ESP32 support but only in terms of WIFI. It supports e.g. stm32 with ENC or W5500 modules - and the question is whether and how to add ESP32 support with LAN8720 module. I am not considering using ESPHOME or MQTT - I want to have native communication with the controller that implements my control schemes on its side. I try to program KC868-A16 but it does not matter - the question is whether such support can be added in a simple way.
-
ESP32 Wired (no WiFi)
Would it be possible to add support for ESP32 systems with ETH interfaces connected to Mysensors? For example LAN8720 or others. Or if it's something that's quite trivial - please give me some tips on how to run such a set.
-
LAN8720A - will mysensors work with this module
I would like to program the KC868-A12 board in arduino (mysensors), but as I see, mysensors does not formally support this network module (esp32 + LAN8720A). Is it possible that if I use the manufacturer's network libraries, mysensors will compile? Has anyone tried this?
-
RE: How control W5500/W5100 (with STM32) by mysensors library
I found procedure gatewayTransportInit(), it works great. However, I cannot find a procedure that will enable detection of a network connection at level mysensors. I noticed that disconnecting the network plug or resetting the W5500 (37 pin to ground) changes the device's IP address to 0.0.0.0 - then I call gatewayTransportInit() - but mysensor's library must have such procedures - please tell me how to diagnose ethernet connection.
-
How control W5500/W5100 (with STM32) by mysensors library
I have a problem with W5500/W5100/ENC28j60 and STM32. Each of these ETH modules jams after a few days. STM32 works correctly but has no knowledge of the lack of network connectivity. Is there any way to detect this condition and reinitialize the W5500/W5100 module? To be clear - the modules do not respond to PING.
-
MYSBootloader + STM32 with Ethernet module
Can I ask for simple step-by-step instructions on how to install MYSBootloader on a new stm32 board - what software, what version, what .hex file - all guides apply to older versions of Arduino IDE and to ATMEGA boards, not to STM32 (e.g. bluepill).
-
send many variables in one messages
Hi.
I have a problem with Blinds. I work with domoticz.
I try to use one STM32 to control 6 blinds. My sketch calculating position (depend of time) and provide V_UP, V_DOWN and V_STOP buttons for each blind.But I want to send actual position to the controller when blind is moving.
At start i create Message:
MyMessage msg(0,V_COVER);
Presentation section:
for (int i=0; i <= blind_cont-1; i++){present(i, S_COVER);}
And when I want sent actual position :
for (int i=0; i <= blind_cont-1; i++) { if (dstatus[i] != V_STOP) { send(msg.setSensor(i).setType(V_PERCENTAGE).set(dposition[i],5),false); wait(250); } }
It;s correct ? Becouse DOMOTICZ doesn't receive anythink.
-
Compile Error, Mysensors 2.3.2
Hi.
If i Try compile sketch with mysensors 2.3.0 - everything is ok. But after upgrade to 2.3.1 or 2.3.2 i have this error. Where is the problem ?In file included from C:\Users\user\Documents\Arduino\libraries\MySensors/MySensors.h:433:0, from C:\Users\user\Documents\Arduino\rolety_stm_new\rolety_stm_new.ino:23: C:\Users\user\Documents\Arduino\libraries\MySensors/core/MySensorsCore.cpp: In function 'bool present(uint8_t, mysensors_sensor_t, const __FlashStringHelper*, bool)': C:\Users\useri\Documents\Arduino\libraries\MySensors/core/MySensorsCore.cpp:391:111: error: conditional expression between distinct pointer types 'const char*' and 'const __FlashStringHelper*' lacks a cast [-fpermissive] requestEcho).set(childSensorId == NODE_SENSOR_ID ? F(" MYSENSORS_LIBRARY_VERSION "): description)); ^ exit status 1