Other Parts Discussed in Thread: TEST2
Hello again,
After a few posts, discussion and a lot of research this is my situation:
* I have 2 CC1101 and an existing off the shelf RF system
* I need to emulate sender and receiver of that system
* They should send and look for the same signal that the original system uses.
* The system does use a preamble and sync word before the data itself starts.
* Async mode is not an option with my code and MCU setup
* I have working code for the TX part, analysed by the original receiver signaling a reception and by comparing a recording of the signal to a recording of the original signal in Audacity.
* Preamble and sync word in the TX setup are in the payload, and I don’t use the built-in ones because the preamble wouldn’t align.
If I configure one CC1101 the exact same way as my transmitter, but put it into RX mode it won’t recognize / capture the data.
It makes sense that it needs to know what to look for, so what would be the recommended setup / register settings that I would need to change?
I’ll append my register settings and a screenshot of the data packet.
logical signal.
110110110110110110110110110110110110110110110110 100100100100 110100110110100110110110100100110110100100
in physical Bits (baudrate to send the above signal at a matching rate with the original sender: 2622 kBaud - see MDMCFG4 and MDMCFG3)
IOCFG2, 0x69
IOCFG1, 0x6E
IOCFG0, 0x46
FIFOTHR, 0x47
PKTLEN, 0x23
PKTCTRL1, 0x04
PKTCTRL0, 0x04
SYNC1, 0x55
SYNC0, 0x55
CHANNR, 0x00
FSCTRL1, 0x06
FSCTRL0, 0x00
FREQ2, 0x10
FREQ1, 0xB0
FREQ0, 0x71
MDMCFG4, 0xE6
MDMCFG3, 0xA7
MDMCFG2, 0x32 EDIT: 0x34
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