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


  • Mod

    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.


Log in to reply
 

Suggested Topics

  • 4
  • 18
  • 5
  • 5
  • 2
  • 5

41
Online

11.6k
Users

11.2k
Topics

112.9k
Posts