The best way to measure sensitivity is to use a signal generator that generates a package. For those with a mid range signal generator without the ability to generate a package an option is to use a generator to generate a '1010' pattern.
To set up a simple sensitivity test receiving a continous 1010 bit pattern do the following:
There are two ways to do this:
- Use the package RX feature in SmartRF Studio to show the bit error rate.
- Output the data on a GPIO pin for external processing
----------------------------------------------------------------------------------
Using Studio:
- Go to the package RX tab
-Set the SYNC word to 0xAA (SYNC3=SYNC2=SYNC1=SYNC0=0xAA)
-Turn of CRC:
PKT_CFG1_CRC.crc_cfg=0x0
- Set fixed package length
PKT_CFG0.length_config=0x0
- Set the package length to something that fits inside the Studio window or the length of the package used in the system, example:
PKT_LEN=0x10
If you have set the expected package count to 100 you will get the package error rate directly.
---------------------------------------------------------------------------
If you want the data stream out on a pin:
- Turn of preamble: set the package count
PREAMBLE_CFG1.num_preamble=0x0
- Set serial modus:
SERIAL_STATUS.ioc_sync_pins_en=0x1
PKT_CFG2.pkt_format=0x01
MDMCFG1.fifo_en=0x0
MDMCFG0.transparent_mode_en=0x0
Set the SYNC word to 0xAA (SYNC3=SYNC2=SYNC1=SYNC0=0xAA)
Turn of CRC:
PKT_CFG1_CRC.crc_cfg=0x0
Then set one IO pin to output the serie clock (IOCFGx=0x08) and one IO to output the serial data (IOCFG=0x09).
The GPIO3 pin is found on pin 3 on P7 on TRX EB
The GPIO2 pin is found on pin 4 on P7 on TRX EB
The GPIO0 pin is found on pin 7 on P7 on TRX EB
The signal generator has to be set up to send a 1010 bit pattern and the frequency, bitrate and deviation has to correspond with whatever you have set up the chip to.