Hello
I use two TI CC1101 RF Modules (Chinese Modules -
https://www.aliexpress.com/item/1005003781140201.html). Both modules are connected to a Raspberry Pi 2 SBC via SPI.
One of them is doing TX, the other one is doing RX. The TX one is transmitting 8 Bytes every 500ms.
This seems to kind of work, but just kind of. When checking the receive Buffer, it it reports received data like this. Sometimes a bit better, sometimes a bit worse:
Bytes in FIFO: 8
Looks like we have data..
Received data: AA 88 AB 22 33 44 44 55
Flushing FIFO..
Bytes in FIFO: 8
Looks like we have data..
Received data: AA 88 AB 22 33 33 44 55
Flushing FIFO..
Bytes in FIFO: 8
Looks like we have data..
Received data: AA 88 AB 22 33 44 44 55
Flushing FIFO..
Bytes in FIFO: 8
Looks like we have data..
Received data: AA 88 AB 22 33 44 44 55
Flushing FIFO..
The sent Buffer is the following one:
uint8_t mydata[8] = {0xAA, 0x88, 0xAB, 0x22, 0x33, 0x44, 0x55, 0x66};
So the received Buffer is kind of correct, but just kind of. It changes from time to time a bit (e.g. the third buffer is different than the other ones above). The length is correct, but some Bytes are duplicated.
Is this "normal" Performance for CC1101? Or am I doing something horribly wrong?
I have attached my Code.