Pjon Script
-
Hello, good evening!!
I'm trying to build two Nodes with two Arduino Pro Minis (a Gateway and a Node, to be precise) connected to each other using the Pjon Protocol.
If I understand correctly, the nodes are connected to each other by a single wire, specifically Pin 12 by default.
I just can't create the sketch.
Can someone provide the Gateway and Node scripts?
Thanks for your help.
-
@sindrome73 said in Pjon Script:
Pjon Protocol
The only way I see this working is that the remote device (non-gateway sensor) sends the data using the PJON protocol over whatever medium. The remote device would not use any MySensors code.
On the gateway, a "sensor" would be created that would receive the data using the PJON protocol over that medium. Once the data is received, it would be "sent" to the gateway portion of the code that is running on the gateway.
Thus, for every remote sensor there would have to be a "sensor" on the gateway. Sort of defeats the purpose of a gateway.
It would be nice if MySensors were media independent and PJON would be a good candidate. Alas, I don't believe there is sufficient support for MySensors these days to create that environment.
As far as someone creating these scripts, I would advise you do a deep dive into PJON. The first part would be to create the POJON "Hello World" pair. Once you have this working, then you could incorporate it into your MySensors gateway.
Let us know how it works out.
-OSD
-
Thers is actually support for pjon as transport in MySensors: https://github.com/mysensors/MySensors/pull/1278
I don’t know how it works though.
-
@mfalkvidd Is the PJON support in current release? Pjon is something that is on my wish list
-
It's in the development branch.
How do you plan to use it? Sounds fascinating, but I haven't quite been able to wrap my head around it.
-
@nagelc I'm thinking about making some kind of shelves with PJON built in. The shelves will have a wireless charger and with PJON I can communicate "Wireless". So on that shelf I can put some things like small candles, maybe a modified humidifier.
Things like that xd