Skip to content

Best parameters settings - range - data rate - reliability #608

Answered by Kongduino
ImTandoff asked this question in Q&A
Discussion options

You must be logged in to vote

It depends on so many variables. But here are a few indications:

  • Good antennas on both side.
  • The higher the SF, the lower the BW, the better.
  • You could also try playing with C/R – from 4/5 to 4/8 for example.
  • PA_BOOST, LNA_Gain

I wrote an app that writes setup code for this library. Here's the end product, after some tweaking:

// BW = 6: 62.5 kHz, CR = 1: 4/5, HM = 0
uint8_t reg1 = 0x62;
// SF = 12: 12, CRC = 0
uint8_t reg2 = 0xC0;
// LDRO = 1, AGCAutoOn = 1
uint8_t reg3 = 0x0C;
// PaSelect = 1, MaxPower = 7: 15 dBm, OutputPower = 15: 17 dBm
uint8_t regpaconfig = 0xFF;
#define REG_OCP 0x0B
#define REG_PA_CONFIG 0x09
#define REG_LNA 0x0c
#define REG_OP_MODE 0x01
#define REG_MODEM_CONFIG_1

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ImTandoff
Comment options

@Kongduino
Comment options

Answer selected by ImTandoff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants