SimpliciTI configuration (first always good)
/* Base frequency = 904.149841 */ /* Modulation format = GFSK */ /* Data rate = 249.939 */ /* Device address = 0 */ /* TX power = 0 */ /* Packet length mode = Variable packet length mode. Packet length configured by the first byte after sync word */ /* Whitening = false */ /* RX filter BW = 541.666667 */ /* Carrier frequency = 904.149841 */ /* Preamble count = 4 */ /* Deviation = 126.953125 */ /* Packet length = 255 */ /* Channel spacing = 231.689453 */ /* Modulated = true */ /* PA ramping = false */ /* Data format = Normal mode */ /* Sync word qualifier mode = 30/32 sync word bits detected */ /* CRC enable = true */ /* Address config = No address check */ /* Channel number = 0 */ /* Manchester enable = false */ /* CRC autoflush = false */ /*************************************************************** * SmartRF Studio(tm) Export * * Radio register settings specifed with C-code * compatible #define statements. * * RF device: CC1101 * ***************************************************************/ #ifndef SMARTRF_CC1101_H #define SMARTRF_CC1101_H #define SMARTRF_RADIO_CC1101 #define SMARTRF_SETTING_IOCFG2 0x29 #define SMARTRF_SETTING_IOCFG0 0x06 #define SMARTRF_SETTING_FIFOTHR 0x07 #define SMARTRF_SETTING_PKTLEN 0xFF #define SMARTRF_SETTING_PKTCTRL1 0x04 #define SMARTRF_SETTING_PKTCTRL0 0x05 #define SMARTRF_SETTING_ADDR 0x00 #define SMARTRF_SETTING_CHANNR 0x00 #define SMARTRF_SETTING_FSCTRL1 0x12 #define SMARTRF_SETTING_FSCTRL0 0x00 #define SMARTRF_SETTING_FREQ2 0x22 #define SMARTRF_SETTING_FREQ1 0xC6 #define SMARTRF_SETTING_FREQ0 0x66 #define SMARTRF_SETTING_MDMCFG4 0x2D #define SMARTRF_SETTING_MDMCFG3 0x3B #define SMARTRF_SETTING_MDMCFG2 0x93 #define SMARTRF_SETTING_MDMCFG1 0x23 #define SMARTRF_SETTING_MDMCFG0 0x24 #define SMARTRF_SETTING_DEVIATN 0x62 #define SMARTRF_SETTING_MCSM0 0x18 #define SMARTRF_SETTING_FOCCFG 0x1D #define SMARTRF_SETTING_BSCFG 0x1C #define SMARTRF_SETTING_AGCCTRL2 0xC7 #define SMARTRF_SETTING_AGCCTRL1 0x00 #define SMARTRF_SETTING_AGCCTRL0 0xB0 #define SMARTRF_SETTING_WORCTRL 0xFB #define SMARTRF_SETTING_FREND1 0xB6 #define SMARTRF_SETTING_FREND0 0x10 #define SMARTRF_SETTING_FSCAL3 0xEA #define SMARTRF_SETTING_FSCAL2 0x2A #define SMARTRF_SETTING_FSCAL1 0x00 #define SMARTRF_SETTING_FSCAL0 0x1F #define SMARTRF_SETTING_TEST2 0x88 #define SMARTRF_SETTING_TEST1 0x31 #define SMARTRF_SETTING_TEST0 0x09 #endif
automatic cal is set.
It transistions to CAL then after a bit into IDLE instead. I sample the MARCSTATE at 1ms intervals.
It goes something like CIIIIIIIII
It appears to do a calibration then idles. This would explain why it's not receiving... however what would cause this? Would it be better to calibration AFTER a receive or transmit instead (from idle).