On 2022-02-12 21:03, Christofer Dutz wrote:
In the end my final goal would be to have plc4c running in a mynewt
application, which is running on some super-low-power STM32 devices.
One of my development boards has a LoRaWan interface, so in the end
I'd love to send requests to the device and have the responses sent
back via LoRaWan to devides out in the field.

Sorry to intervene... I work a lot with LoraWAN and somehow this sounds like "All I have is a hammer so all problems look like a nail." kind of thinking.

LoraWAN operates on the basis that uplinks are relatively cheap, albeit limited in frequency, and downlinks are much more scarce resource, so "request/response" messaging is discouraged in general. And practically all devices simply send a packet at some configured interval, with as few bytes as possible (to minimize airtime).

I use The Things Network (have not bothered to deploy my own stack, but uses the community managed one), and it receives/concentrates the LoraWAN packets, and I have a choice there to request/reply, MQTT subscribe or webhook (POST to URL) upon data arriving (but after decoding of binary bytes to extensive JSON with a lot of useful metadata).

I would be happy to guide you or answer any questions, because I think the request/reply "mentality" from PLC world doesn't really belong in the LoraWAN world.

About your neighbor; I assume it is pH, phosphate and similar measurements to be made, maybe measuring the level. It is very likely that dedicated LoraWAN sensors are available off-the-shelf, and if not, just a generic analog inputs device with conventional sensors would be my solution.

And then connect it all to my upcoming http://sensetif.com (service at https://sensetif.net) for storage and visualization. ;-) (beta-launch planned for March)


Cheers
Niclas

Reply via email to