Hello,
I need to realise a visualisation of low variability data coming from a dozen sensors. I rejected proprietary solutions such as TFT+GUI+TP due to the lack of compatibility with different systems and the additional costs associated with the development of hardware. After analysing the available solutions, Domoticz + MySensors fell due to the possibility of working under different systems (Android, Linux, Windows) and the possibility of supporting the sensors and actuators I have in the system. In addition, data encryption, control of operation via hearbeat and acknowledgement of data reception are all necessary elements to improve security and reliability.
Unfortunately, the AVRs don't suit me and I would like to replace them with STM32L0xx in small battery-powered nodes and STM32F4xx in gateway and large continuous-powered nodes.
The code used in MySensors works under Arduino, but trying to rewrite it for STM32 under Eclipse has overwhelmed me. On the one hand, too many functions are invisible or redefined with #define and then buried somewhere deep, on the other hand C is mixed with C++ and monsters of type appear:
.
There is mention on the MySensors site of attempts to approach this by 2 people: freynder and tekka. But they haven't published anything concrete yet. There has only been a list of necessary file changes for a few months.
For the time being, I'm interested in USB data transfer based on VCOM. MQTT I am not even trying, even less so with small data volumes (<5kB/h).
ESP doesn't interest me because I have a lot of energy constraints: maximum current is 50mA, operating time >6 months, TDM-based data transfer where the gateway manages timing to avoid interfering with other nodes.
A question for 100 points or more:
Can any of you point to readable code for a gateway or single node based on any STM32 and compatible with Domoticz or another comparable combo (HomeAssistant or OpenHAB)?
I need to realise a visualisation of low variability data coming from a dozen sensors. I rejected proprietary solutions such as TFT+GUI+TP due to the lack of compatibility with different systems and the additional costs associated with the development of hardware. After analysing the available solutions, Domoticz + MySensors fell due to the possibility of working under different systems (Android, Linux, Windows) and the possibility of supporting the sensors and actuators I have in the system. In addition, data encryption, control of operation via hearbeat and acknowledgement of data reception are all necessary elements to improve security and reliability.
Unfortunately, the AVRs don't suit me and I would like to replace them with STM32L0xx in small battery-powered nodes and STM32F4xx in gateway and large continuous-powered nodes.
The code used in MySensors works under Arduino, but trying to rewrite it for STM32 under Eclipse has overwhelmed me. On the one hand, too many functions are invisible or redefined with #define and then buried somewhere deep, on the other hand C is mixed with C++ and monsters of type appear:
Code: text
There is mention on the MySensors site of attempts to approach this by 2 people: freynder and tekka. But they haven't published anything concrete yet. There has only been a list of necessary file changes for a few months.
For the time being, I'm interested in USB data transfer based on VCOM. MQTT I am not even trying, even less so with small data volumes (<5kB/h).
ESP doesn't interest me because I have a lot of energy constraints: maximum current is 50mA, operating time >6 months, TDM-based data transfer where the gateway manages timing to avoid interfering with other nodes.
A question for 100 points or more:
Can any of you point to readable code for a gateway or single node based on any STM32 and compatible with Domoticz or another comparable combo (HomeAssistant or OpenHAB)?