STM32WL (SX1262) vs S2-LP (CC1101) data whitening algorithm incompatible?
Hi there!
We are developing a new STM32WL based product that must be compatible with the existing STM32L0 + S2-LP products.
It appears that the GFSK data whitening algorithm is different(?). I used an SDR dongle to sniff the raw bytes transmitted over the air.
A 4 byte packet is transmitted with the following content (in HEX; before data whitening):
PREAMBLE: 55 55 55 55
SYNC: 93 0B 51 DE
LEN: 04
DATA: AA BB CC DD
The packet transmitted over the air by the S2-LP is (after data whitening):
PREAMBLE: 55 55 55 55
SYNC: 93 0B 51 DE
LEN: FB
DATA: 4B A6 56 30
The packet transmitted over the air by the STM32WL is (after data whitening):
PREAMBLE: 55 55 55 55
SYNC: 93 0B 51 DE
LEN: FB
DATA: 2D 03 95 6A
So the LEN field is correct but the DATA is different. I have looked at section 7.10 of the S2-LP datasheet and section 6.2.3.4 of the SX1261/2 datasheet but can't figure out the difference.
The STM32WL whitening seed is set to 0x1FF (alll ones) with:
SUBGRF_SetWhiteningSeed(0x01FF);
Are the two data whitening algorithms different? Can it be fixed?
Thanks in advance,
Pieter
