The Gradusnik project is being updated, to a more sane design, but the transport protocol remains the same. If there is interest I will post more details about that project as soon as I receive the new PCB and test that everything works.

This is part of a bigger open source project for home automation we (me and my wife) are working on, but it can also be used by itself.

OSNP is quite different from the Microchip's provided MiWi because is targeted to be used in a Master-Slave network architecture, where eventually many slaves exist (creating a start network). It is not meant to carry a lot of data in commands, and at the moment support for segmentation is not planned (but can be implemented at the higher level). The entire code of the example project, compiles to 9k including security, power management, device discovery, association, etc.

Another difference with MiWi, is that the protocol itself is documented and there is also a Javascript (Node) implementation which is what we use on our master device.

Both the MRF24J40 and OSNP code are platform agnostic. They have been tested with a PIC18, but they should work on anything providing the correct Hardware Abstraction Layer (it's really just a few functions).