I want to use a pair of the LoRa mLink modules to transfer information. One way to do this is to use PJON (
https://github.com/gioblu/PJON). I have a library which converts PJON to LoRa using SPI rather than I2C. I can work on an I2C version. Is there any way to convert SPI output to I2C to avoid this?
I'm not deeply familiar with PJON, so please take this as a general observation rather than a definitive answer. From what I’ve seen in the PJON library, it’s unlikely that it can directly interface with the mLink modules out of the box. While the mLink Longreach modules do use LoRa, they aren’t just basic LoRa radios, they include a smart I2C interface that handles all the internal LoRa configuration and communication for you. This design simplifies things on the Arduino side, but it also means that PJON won’t automatically know how to communicate with them, even if you could somehow adapt SPI output to I2C.
That said, PJON seems to implement something called a custom 'strategy’ (
https://github.com/gioblu/PJON/tree/mas ... strategies), which allows you to connect unsupported devices to the library. So there is a good chance you could use this feature to link the mLink library to the PJON library. It would also mean you can directly interface PJON to the mLink modules without needing some SPI to I2C adapter.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.