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.
Posts made by Marcin
-
RE: How control W5500/W5100 (with STM32) by mysensors library
-
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