ronoth / LoStik

LoRaWAN compatible USB test device
MIT License
134 stars 40 forks source link

PIC18LF46K22 code? #5

Closed WA4OSH closed 5 years ago

WA4OSH commented 6 years ago

I don't see the PIC18LF46K22 code in the GitHub. Does it have API primitives to support LoRaWAN as well as LoRa?

WA4OSH commented 6 years ago

Please document the API to the PIC18LF46K22 code so that we can develop LoRa (point-to-point) and LoRaWAN connections.

WA4OSH commented 6 years ago

Does your PIC's LoRaWAN code support OTAA, or is it ABP only?

lolsborn commented 5 years ago

The default firmware on the RN2903 is UART / text based. See command reference linked in readme. It supports both OTAA and ABP class A LoRaWAN.

I'm not going to include any instructions on here for programming via C / MPLab as 99% of people are using this as a test device via the UART interface. I have had some success programming the PIC18 on the RN2903, but it requires a lot of effort to get setup. The firmware library for the PIC includes both class A and class C LoRaWAN support.

magillus commented 5 years ago

I found that firmware of RN2903 1.0.5 at https://www.microchip.com/wwwproducts/en/RN2903 release notes mention class C support with set class command.

found more in this: http://ww1.microchip.com/downloads/en/DeviceDoc/RN2903%20LoRa%20Technology%20Module%20Command%20Reference%20User%20Guide-DS40001811B.pdf