Lora-net / SWL2001

LoRa Basics Modem LoRaWAN stack
BSD 3-Clause Clear License
111 stars 64 forks source link

Assistance Needed for LoRa 2.4GHz Configuration and Join Request Issues #94

Open sluissantos opened 1 month ago

sluissantos commented 1 month ago

Hello,

I am working on a project using LoRa 2.4GHz and need some assistance with configuration and performance.

Here are the details of my setup:

I am adapting the example from application_example/2_porting_nrf_52840 to work with the nRF52832. For testing, I am using the file main_periodical_uplink.c and here is the output I get:

<info> app: INFO: Modem Initialization
<info> app: INFO: Use soft secure element for cryptographic functionalities
<info> app: stack_id 0
<info> app: DevNonce = 0
<info> app: JoinNonce = 0xff ff ff, NetID = 0xff ff ff
<info> app: Region = WW2G4
<info> app: LoRaWAN Certification is disabled on stack 0
<info> app: Modem event callback
<info> app: INFO: Event received: RESET
<info> app: INFO: smtc_modem_join_network
<info> app: Start a new join sequence in 3 seconds on stack 0
<info> app: INFO: Periodical uplink example is starting 
<info> app: STMC_MODEM_STATUS = 0
<info> app: INFO: No network joined yet or unknown status
<info> app: STMC_MODEM_STATUS = 0
<info> app: INFO: No network joined yet or unknown status
<info> app: DevEUI - (8 bytes): 00 00 00 00 00 00 00 00
<info> app: JoinEUI - (8 bytes): 00 00 00 00 00 00 00 00
<info> app: DevNonce 0x1, stack_id 0
<info> app: INFO: SMTC_MODEM_STATUS_JOINING
<info> app: *************************************
<info> app: Send Payload  for stack_id = 0
<info> app: *************************************
<info> app: Tx LoRa at 9014 ms: freq:2479000000, SF10, BW800, len 23 bytes 8 dBm, fcnt_up 0, toa = 75
<info> app: INFO: SMTC_MODEM_STATUS_JOINING
<info> app: INFO: SMTC_MODEM_STATUS_JOINING

While monitoring the traffic on my gateway, I rarely receive the join request message. When I do receive it, the RSSI is usually below -100 dBm, which indicates poor signal strength.

Here are my gateway configurations:

I am trying to ensure that I can successfully send messages.

My questions:

  1. How can I configure the radio to always use Spreading Factor 12 (SF12) (along with all other radio parameters), even for the join request message?
  2. The RSSI is consistently low. What could be the possible cause for this poor signal quality?

Thank you for your help!

opeyrard commented 5 days ago

Hi, Could you please compile using flag LBM_BUILD_OPTIONS +=WW2G4_SINGLE_DATARATE ? In this case, DR0 will be taken into consideration for all uplinks. Please check and let us know. Many thanks,