FORUM

Sx1302 Frequency syncword

In sx1302 Hal driver, the sx1250 frequency calibration parameters are only in the following frequency bands. If need to use other frequencies (such as 365mhz and 400MHz), how to set the parameters and whether the calculation method can be provided.
/* Run calibration */

if ((freq_hz > 430E6) && (freq_hz < 440E6)) {

    buff[0] = 0x6B;

    buff[1] = 0x6F;

} else if ((freq_hz > 470E6) && (freq_hz < 510E6)) {

    buff[0] = 0x75;

    buff[1] = 0x81;

} else if ((freq_hz > 779E6) && (freq_hz < 787E6)) {

    buff[0] = 0xC1;

    buff[1] = 0xC5;

} else if ((freq_hz > 863E6) && (freq_hz < 870E6)) {

    buff[0] = 0xD7;

    buff[1] = 0xDB;

} else if ((freq_hz > 902E6) && (freq_hz < 928E6)) {

    buff[0] = 0xE1;

    buff[1] = 0xE9;

} else {

    printf("ERROR: failed to calibrate sx1250 radio, frequency range not supported (%u)\n", freq_hz);

    return -1;

}

Sx1302 syncword only has public (0x34) and private (0x12) parameters in Hal driver. If need to set a user-defined syncword, how to set the parameter value

if (public == true) {

    DEBUG_MSG("INFO: configuring LoRa (Multi-SF) SF7->SF12 with syncword PUBLIC (0x34)\n");

    err |= lgw_reg_w(SX1302_REG_RX_TOP_FRAME_SYNCH0_SF7TO12_PEAK1_POS_SF7TO12, 6);

    err |= lgw_reg_w(SX1302_REG_RX_TOP_FRAME_SYNCH1_SF7TO12_PEAK2_POS_SF7TO12, 8);

} else {

    DEBUG_MSG("INFO: configuring LoRa (Multi-SF) SF7->SF12 with syncword PRIVATE (0x12)\n");

    err |= lgw_reg_w(SX1302_REG_RX_TOP_FRAME_SYNCH0_SF7TO12_PEAK1_POS_SF7TO12, 2);

    err |= lgw_reg_w(SX1302_REG_RX_TOP_FRAME_SYNCH1_SF7TO12_PEAK2_POS_SF7TO12, 4);

}

If need to use other frequencies (such as 365mhz and 400MHz), how to set the parameters and whether the calculation method can be provided.

I’ll check with the designer and let you know.

If need to set a user-defined syncword, how to set the parameter value

It is not recommended to use a different from the public or private one.

Hi @mantoine,

I have the same question regarding changing syncword for SX1302.

I have a proprietary application and would love to know the detail why it is not recommended to change.

I posted the same question here.

Thanks.

Cheers,
Paul