Hi all,
I have been struggling to make the SX1262 and SX1231 talk with each other on FSK. After a long struggle, I think I found the problem:
On the SX1262 I am sending each 5s {0xFF, 0xFF, 0xFF, 0xFF}, with whitening (default value) and variable size packets. Preamble of 5 bytes, sync word {0xd2, 0x6b, 0xe2}, working no problem.
On the SX1231 side, sync on, using fixed lenght and no-dewhitening it arrives as: {0x04,0x77,0x37,0x15,0x27}
With de-whitening, I get {0xFB,0xF0,0x8F,0x4C,0x90},
If I set SX1231 as variable length and no-dewhitening it arrives as: {0x04,0x77,0x37,0x15,0x27}
If I set SX1231 as variable length and with dewhitening, nothing arrives. The problem here, I suspect, is the packet size byte 0x04 beomes 0xFB and the packet is discarded.
If on the SX1262 I send 5 bytes, the first byte becomes 0x05, so it seems to me there is no whitening being applied to the packet length byte, which, following the datasheet figure 6.3 there should be.
So I believe there are two problems:
The SX1231 is dewhitening the length byte, which the SX1262 is not whitening.
The SX1231 is dewhitening algorithm is different than the SX1262 whitening algorithm.
For now I have just turned off data whitening to make them talk. Would anyone have ideas on whether the above is a true error or something which can be solved by changing the whitening initial values register on the sx1262?
Any ideas would be greatly appreciated.
Best,
Paulo.