richonguzman / LoRa_APRS_Tracker

LoRa APRS Tracker with Tx and Rx capabilities, Messages, Wx, Winlink and more...
MIT License
168 stars 45 forks source link

Feature: Support RFM96 LoRa chip #93

Open petrkr opened 1 month ago

petrkr commented 1 month ago

I have custom board which using RFM96 modules. Since RFM96 is quite similar to SX127x there should not be lot of changes. I just making this as placeholder for future work on it.

I wanted show it today, but it does not work out-of-box, so before I will forgot I will make this as placeholder to remember.

now I am in boot loop

[INFO][LoRa] Set SPI pins!
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x400db920  PS      : 0x00060a30  A0      : 0x800d2aec  A1      : 0x3ffd1740  
A2      : 0x3ffc4db4  A3      : 0x3ffc63b8  A4      : 0x3ffc4b58  A5      : 0x3f4022db  
A6      : 0x3ffc6ba4  A7      : 0x3f426863  A8      : 0x00000000  A9      : 0x3ffd1720  
A10     : 0x3ffc63b8  A11     : 0x0000001a  A12     : 0xffffffff  A13     : 0x0000001b  
A14     : 0x0000001a  A15     : 0x0000e100  SAR     : 0x00000009  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000000  LBEG    : 0x4010dd75  LEND    : 0x4010dd84  LCOUNT  : 0x00000000  

Backtrace: 0x400db91d:0x3ffd1740 0x400d2ae9:0x3ffd17c0 0x4010eb9e:0x3ffd1880

Inspiration for example in Meshastic https://github.com/meshtastic/firmware/blob/master/src/mesh/RadioLibRF95.cpp

richonguzman commented 1 month ago

So this is a "new" (old) board to add to tracker possibilities , right?

It seems that I runs over Radiolib and the pinouts are similar to sx1278 boards

do you have success using it on any custom code (not meshtastic?) to validate this fast?

petrkr commented 1 month ago

Something like that. I have development boards before ttgo or others existed and I make break out board for rfm9x modules. And since I wanted to show aprs to one friend, who asked for it. I decide to try it on mine board as I have them and do not wanted wait 1 month for aliexpress one.

I used those boards back to 2018/2019 on TTN lorawan and later on HNT/Helium

Here I was using LMIC library with it https://github.com/petrkr/helium-lora-sht3x

richonguzman commented 1 month ago

Something like that. I have development boards before ttgo or others existed and I make break out board for rfm9x modules. And since I wanted to show aprs to one friend, who asked for it. I decide to try it on mine board as I have them and do not wanted wait 1 month for aliexpress one.

I used those boards back to 2018/2019 on TTN lorawan and later on HNT/Helium

Here I was using LMIC library with it https://github.com/petrkr/helium-lora-sht3x

which pins definitions change did you change on yours to make it work?

or what did you try (and change) to know where to start(over)

petrkr commented 1 month ago

Here I did fork and created new board definition

https://github.com/petrkr/LoRa_APRS_Tracker/commit/0752172b6dd1b3417398954dc4d3442c1a9f1b2a

richonguzman commented 1 month ago

Here I did fork and created new board definition

petrkr@0752172

this fork got the reboot loop?

but did you upload filesystem? as Lora pins definitions dont produce reboot loops :P

petrkr commented 1 month ago

Filesystem? Nope :)

Time to read carefully build instructions. I had like half hour, so I did platform build and upload.

Now I am on way to HAM meetup. I will maybe have some time there too.

De OK1PKR

richonguzman commented 1 month ago

Check this :

tutorial-wiki

petrkr commented 1 month ago

Well. Bootloop fixed, really flashing filesystem helps.

But for now really does not initialized that LoRa Radio

[INFO][LoRa] Set SPI pins!
[ERROR][LoRa] Starting LoRa failed!

IMG_20240506_173802732_HDR

richonguzman commented 1 month ago

Well. Bootloop fixed, really flashing filesystem helps.

But for now really does not initialized that LoRa Radio

[INFO][LoRa] Set SPI pins!
[ERROR][LoRa] Starting LoRa failed!

IMG_20240506_173802732_HDR

time to revalidate pins definitions on pins_config.h

petrkr commented 1 month ago

I have to test some test code for that module to check if module itself works. Pinout is fine, checked again.

I have to check how to add some more debug output/messages. So I can try RAW SPI messages.

Anyway thank you

richonguzman commented 1 month ago

I have to test some test code for that module to check if module itself works. Pinout is fine, checked again.

I have to check how to add some more debug output/messages. So I can try RAW SPI messages.

Anyway thank you

let me know how the testing goes, to add this also as a valid board later ;)