💬 Building a Serial Gateway
-
Hello,
im kind of lost, i need to install a distance sensor buried in a well of water, and will need a lot of tweaking and reprogramming until i get the desired correct measurements.
so i need OTA, extremely low power (battery powered, sleeps most of time), so i went to ultrasonic sensor HC04 which is even powered through GPIO of pro mini, and an nrf24l01+. the main problem is OTA. My concerns are:- should i burn MYSBOOTLOADER on sensor and Serial GW ?
- if bootlader burnt, any sketch can do the OTA?
- should I use only MySensors GW SW, or can i have my own sketch.
Any ideas are welcome.
Thanks a lot
-
Is there a way to make a serial2mqtt gateway (e.g. a NodeMCU is getting MySensor data on the serial interface and should just bridge that to MQTT)?
-
Is it possible to get a list of all attached nodes? I'd like to attach a TFT screen to the gateway that shows all the connected devices.
-
Is it possible to get a list of all attached nodes? I'd like to attach a TFT screen to the gateway that shows all the connected devices.
@alowhum there is no such thing as an attachment in a MySensors network.
Nodes send messages whenever they like. The nodes may go to sleep at any time, which would make them unavailable.
The gateway does not store information about when a node last communicated, nor about which child sensors have been presented.
-
@mfalkvidd Thanks. Would it be possible to generate that list somehow? Perhaps by listening to what nodes connect to it?
It doesn't matter if they are offline or not, it doesn't have to be perfect.
-
@mfalkvidd Thanks. Would it be possible to generate that list somehow? Perhaps by listening to what nodes connect to it?
It doesn't matter if they are offline or not, it doesn't have to be perfect.
-
But could the gateway itself do it too? If so, do you have any suggestions on where I should start? How can I "hook into" the gateway to find out what devices are communicating with it? Is there example code of this?
-
But could the gateway itself do it too? If so, do you have any suggestions on where I should start? How can I "hook into" the gateway to find out what devices are communicating with it? Is there example code of this?
-
-
Thanks!!
-
After 3 years of using RADIO_RF24 i replaced my all sensors with espeasy. It was just big battle with lost transmissions, disconnections, every day problems. Now for many days silence...Everything works.I still use mysensors in diferrent setup but NRF Radio is asking for trouble.
-
I tried building a serial gateway using an Arduino Nano, but it never worked (both gateway and node start, but node keeps saying NO REPLY). I used the same NRF24 module directly on the Raspberry Pi, and built a Raspberry Pi gateway, it worked perfectly. Any idea on what might be going on? Thanks!
-
I tried building a serial gateway using an Arduino Nano, but it never worked (both gateway and node start, but node keeps saying NO REPLY). I used the same NRF24 module directly on the Raspberry Pi, and built a Raspberry Pi gateway, it worked perfectly. Any idea on what might be going on? Thanks!
-
Can serial gateway be build on Atmel 168 chip instead of 328 in terms of memory? It compiles fine, but leaves little extra memory for variables.
-
Sketch uses 13634 bytes (95%) of program storage space. Maximum is 14336 bytes. Global variables use 731 bytes (71%) of dynamic memory, leaving 293 bytes for local variables. Maximum is 1024 bytes.
I noticed parsing error in my controller log and switched to 328P. I bought 168P by mistake and wondering how I can use it. Does simple mySensors node require less ROM/RAM than gateway?
-
Sketch uses 13634 bytes (95%) of program storage space. Maximum is 14336 bytes. Global variables use 731 bytes (71%) of dynamic memory, leaving 293 bytes for local variables. Maximum is 1024 bytes.
I noticed parsing error in my controller log and switched to 328P. I bought 168P by mistake and wondering how I can use it. Does simple mySensors node require less ROM/RAM than gateway?
@APL2017 a very simple node, yes. But a node using a sensor library can often need more flash and ram than a gateway. I have tried to fit things into the atmega168 (I also bought wrong devices) but gave up. Unless you think it is a fun and interesting challenge, it will not be worth the time.
-
@APL2017 a very simple node, yes. But a node using a sensor library can often need more flash and ram than a gateway. I have tried to fit things into the atmega168 (I also bought wrong devices) but gave up. Unless you think it is a fun and interesting challenge, it will not be worth the time.
@mfalkvidd Thank you, I will donate 168P to some other Arduino enthusiast.