ASDFS, USB-гуру (11.08.2010 12:32, просмотров: 206) ответил Alex B. на Выложи сетап с конфигуратора.
Вот
const HAL_RF_CONFIG myRfConfig = {
0x06, // FSCTRL1 Frequency Synthesizer Control - IF freq (6 - 150kHz; default 15 - 380kHz)
0x00, // FSCTRL0 Frequency Synthesizer Control - offset (0 default)
0x0F, // FREQ2 Frequency Control Word, High Byte - carrier 410MHz
0xC4, // FREQ1 Frequency Control Word, Middle Byte
0xEC, // FREQ0 Frequency Control Word, Low Byte
0x79, // MDMCFG4 Modem Configuration - channel BW (default 200kHz 0x4?); DataRate (default 115kbaud 0x?C)
0x43, // MDMCFG3 Modem Configuration - DataRate (default 115kbaud 0x22)
0x0A, // MDMCFG2 Modem Configuration - 2FSK; Manch; sync 16/16; no CSense
0x22, // MDMCFG1 Modem Configuration - 4 byte preamble (default);
0xF8, // MDMCFG0 Modem Configuration - chan spacing (default 200kHz)
0x60, // CHANNR Channel Number
0x51, // DEVIATN Modem Deviation Setting -
0x56, // FREND1 Front End RX Configuration - (0x56 for <=40kbaud; else 0xB6)
0x10, // FREND0 Front End TX Configuration - PATABLE select
// 0x, // MCSM2 Main Radio Control State Machine Configuration - RX timeout (infinity default)
// 0x30, // MCSM1 Main Radio Control State Machine Configuration - what happen after TX/RX (IDLE default)
0x18, // MCSM0 Main Radio Control State Machine Configuration - autocal before RX/TX;
0x16, // FOCCFG Frequency Offset Compensation Configuration - (0x16 for <=40kbaud; else 0x1D)
0x6C, // BSCFG Bit Synchronization Configuration - (0x6C for <=40kbaud; else 0x1C)
0x03, // AGCCTRL2 AGC Control - (0x03 for <=4kbaud; 0x43 for <=40kbaud; else 0xC7)
0x40, // AGCCTRL1 AGC Control - (0x40 for <=40kbaud; else 0x00)
0x91, // AGCCTRL0 AGC Control - (0x91 for <=40kbaud; else 0xB2)
0xE9, // FSCAL3 Frequency Synthesizer Calibration - SRF
0x2A, // FSCAL2 Frequency Synthesizer Calibration - SRF
0x00, // FSCAL1 Frequency Synthesizer Calibration - SRF
0x1F, // FSCAL0 Frequency Synthesizer Calibration - SRF
0x59, // FSTEST Frequency Synthesizer Calibration Control
0x81, // TEST2 Various Test Settings
0x35, // TEST1 Various Test Settings
0x0B, // TEST0 Various Test Settings
0x07, // FIFOTHR RX FIFO and TX FIFO Thresholds
0x0B, // IOCFG2 GDO2 Output Pin Configuration
0x04, // PKTCTRL1 No addr chk; Stat append; no CRC autodiscard; SYNC aways accepted
0x05, // PKTCTRL0 No whitening; CRC on; Length is first data byte
0x00, // ADDR
50, // PKTLEN max packet len
};