The LoRa Developer Forum is now in read-only mode and new content will not be added.
Semtech, in its commitment to enhance user experience and streamline content, has successfully integrated the LoRa Developer Portal content into Semtech.com. As a result of this consolidation effort, the LoRa® Developer Portal Forum will be discontinued on May 1st. After this date, you will be automatically redirected to Semtech.com.
For any technical support related to LoRa, please feel free to reach out to our experts here. If you have sales inquiries, please contact us here.

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.