This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2545: CC2545 How to send and receive packets of more than 128 bytes

Part Number: CC2545

dear all:

    My project is in use CC2545,The length of data per packet is greater than 128 bytes,How to do it correctly to send and receive data correctly

thanks!

  • David,

    I do not have an example to give you, but as the FIFO is only 128 bytes long you will need to setup an interrupt service routine that runs when the FIFO low threshold is set. The FIFO threshold is programmable, I typically recommend that you start by writing 128 bytes into the FIFO. This start your transmission. The RF core will then provide an interrupt what the FIFO is low (say 10-16 bytes left). Remember, you need to refill the FIFO before the Radio runs out of data to send. Then inside the ISR add 64 more bytes. Now you have 70 ish left and the ISR can exit.

    Remember, that the longest packet possible might not be in your overall system interest. If you have a payload of 1024 bytes to send. You could send all of it in one packet. but then if the CRC fails, you need to resent the entire 1024 bytes. However, if you split the task up into 8 chunks of 128 bytes, then if one of them failed, you only had to retry 128 bytes of not the entire 1024 bytes.

    Regards,
    /TA