Closed Pascal66 closed 8 months ago
Let me clarify:
while (1) {
vTaskSuspend(NULL);
sx127x_handle_interrupt((sx127x *)arg);
}
Some registers are not well configured, for example: 0x1f -> 0x2a wich put the preamble detection to off 0x1f must be at 0xAA, tried to force it, and unable to write the register your command 'sx127x_fsk_ook_rx_set_preamble_detector' seems fine.
Have you figured out where the issue was? Was it in the library?
Have you figured out where the issue was? Was it in the library?
I resolved it using directly my own register values. Still at 0x2A and not 0xAA as expected, but it work. I've to look closer at SX1276SKA source code
Can't reproduce it. Can you try to dump all registers into the serial / console before switching to RX mode? I can debug registers using "dump_registers" tool.
uint8_t registers[0x80];
sx127x_dump_registers(registers, device);
for (int i = 0; i < sizeof(registers); i++) {
if (i != 0) {
printf(",");
}
printf("0x%x", registers[i]);
}
printf("\n");
Still searching but you have at least one error and not time to search all
printf("0x09: RegPaConfig:\n"); value = regs[0x09]; // Not value = regs[0x07]; if ((value & 0b10000000) == 0b10000000) { printf("\tPaSelect=PA_BOOST pin\n"); } else { printf("\tPaSelect=RFO pin\n"); }
How can this be explained ? The RAW are followed by my own decoder (Look at the recurrent (but wrong) pattern) The FSK packet are VARIABLE, no CRC check Synchro & preamble are fine Doesnt Work : (Only CONTINOUS)
ESP_ERROR_CHECK(sx127x_set_opmod(SX127x_MODE_RX_SINGLE, SX127x_MODULATION_FSK, device));
Maybe configuring the main part ? :Or clear the FIFO in ? :