The LRC-S02 module contains a Semtech SX1302 and one to two SX1250 in order to handle 4 or 8 channels. The SPI and UART interface of the LRC-S02 are connected to the SX1302 as follows.
For reference, refer to the LRC-S02 datasheet and the SX1302 Datasheet. These documents describe the operation of the hardware.
Semtech does not publicly publish the SPI command interface details for the SX1302 but instead provides an API library which shows how to use the module. See the sx1302_hal project. In this project, you can examine the low level API in loragw_hal.h.
It is recommended to start with Linux or FreeBSD and to 1) build libloragw subfolder then 2) packet_forwader subfolder using the provide Makefile.
If you wish to port to another processor, you should get the libloragw files to build on that processor, which means you would modify the low-level SPI command so they use your OS's SPI functions. Once this is building, you can then migrate packet_forwarder to your application. This effort is more extensive and Signetik may have some support source code to help with this, depending on your target CPU/MCU/OS.
Comments
0 comments
Please sign in to leave a comment.