ElectronicCats / Beelan-LoRaWAN

A LoRaWAN library for compatible arduino board
https://www.beelan.mx
MIT License
191 stars 78 forks source link

ElectronicCats #187

Closed tienbeo1910 closed 5 months ago

tienbeo1910 commented 5 months ago

How to send/receive on STM32+SX1278 board? I'm sure my STM32 board works fine. Can I ask for your opinion on the direction and how to fix it to be able to transmit and receive on the STM32 board? I really need help to complete the assigned project! Thank you very much!

Eric286 commented 5 months ago

Hello @tienbeo1910!

First please double-check your STM32 board functionality. Run a simple program to confirm it's working correctly.

Ensure your STM32 board has SPI pins connected to the SX1278 and that the library's SPI configuration matches your board's setup.

Also remember to adjust the frequency.

Please follow the next steps:

Close all instances of Arduino IDE Go to this path using your file explorer: Windows: C:\Users\user_name\Documents\Arduino\libraries\Beelan-LoRaWAN-X.X.X\src\arduino-rfm Mac: /Users//Documents/Arduino/libraries/Beelan-LoRaWAN-X.X.X/src/arduino/-rfm Open the file named Config.h Uncomment the frequency band and subband you require. (If the file has already some bands or sub-bands uncommented, comment them, so the file only will have 1 band and subband frequency config) Save the changes

Kind regards,