Other Parts Discussed in Thread: TEST2, CC110L
So, this question is a follow-up to my last thread that helped me understand how the sync word can still be used with a signal that doesn't use "101010" as a preamble, but instead has something like "110110110".
* I am able to receive this OOK-modulated signal
* It doesn't work immediately, instead only after trying (transmitting) for a while.
* Unfortunately, the actually returned values are mostly zero / the demodulation of the signal didn't completely work out fine.
* For whatever reason, at least when sending, I need to invert all bits, as well as when setting the sync word. So maybe the output also has to be inverted, in that case my actually received signal is mostly high.
* The value in RSSI after reception is around 240, which I think is quite high (?). While transmitting and being close to the CC1101 (20cm) the RSSI drops to around 50-ish and when the system is idle the reading is around 210.
* The signal to be detected (logical): 1111111111111111000010110111001100
* The signal to be detected (physical): 110110110110110110110110110110110110110110110110 100100100100 110100110110100110110110100100110110100100
* The preamble: 11011011011011011011011011011011011011011011
* The sync word to be looked for: 0110100100100100 = 0x6924
* The payload data: 110100110110100110110110100100110110100100
These are my initial register settings:
IOCFG2, 0x69
IOCFG1, 0x6E
IOCFG0, 0x46
FIFOTHR, 0x47
PKTLEN, 0x23
PKTCTRL1, 0x04
PKTCTRL0, 0x04
SYNC1, 0x69 (actually, inverted: 0x96)
SYNC0, 0x24 (actually, inverted: 0xDB)
CHANNR, 0x00
FSCTRL1, 0x06
FSCTRL0, 0x00
FREQ2, 0x10
FREQ1, 0xB0
FREQ0, 0x71
MDMCFG4, 0xE6
MDMCFG3, 0xA7
MDMCFG2, 0x32
MDMCFG1, 0x22
MDMCFG0, 0xF8
DEVIATN, 0x15
MCSM2, 0x07
MCSM1, 0x20
MCSM0, 0x18
FOCCFG, 0x14
BSCFG, 0x6C
AGCCTRL2, 0x03
AGCCTRL1, 0x00
AGCCTRL0, 0x92
WOREVT1, 0x87
WOREVT0, 0x6B
WORCTRL, 0xFB
FREND1, 0x56
FREND0, 0x11
FSCAL3, 0xE9
FSCAL2, 0x2A
FSCAL1, 0x00
FSCAL0, 0x1F
RCCTRL1, 0x41
RCCTRL0, 0x00
FSTEST, 0x59
PTEST, 0x7F
AGCTEST, 0x3F
TEST2, 0x81
TEST1, 0x35
TEST0, 0x0B
0x3E, 0xC0
After that, I just do a strobe command to set the CC1101 in RX state.
Thank you in advance!
PS: I've also read this already and that's why my AGCCTRL settings are like pasted above.