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.

CC1352P7: CMD_PROP_TX_ADV.pktLen does not match

Part Number: CC1352P7


I've met the exact same problem as the related post when trying to send Wi-Sun packets with rfPacketTx. Thanks to the post I was able to solve the problem.

However I found that the length displayed in SmartRF Studio actually does not match the CMD_PROP_TX_ADV.pktLen in the code. For example, in SmartRF Studio if I select 4 Byte CRC and enters a 4 Byte payload, the length shown is 8 and CMD_PROP_TX_ADV.pktLen is 0x08 in generated code, but it actually needs to be 6 to work! This could be misleading and I actually spent a whole day trying to find out the problem.

Could you please check if this is a bug in SmartRF Studio and fix it? Thanks.

Best regards,

Shuyang

  • I have seen the same thing, and also experience that in the case you describe, if I set the pktLen to 8 in my own code I get a CRC error, but setting it to 6, it works. 

    What I do not understand is why it works when sending from Studio. I am suspecting that the pktLen is being overwritten internally in the Studio SW, and are working with our tools team to figure out what is going on.

    I will keep you updated

    Siri

  • Hi Siri,

    Thanks for confirming. I'm too think SRF Studio is sending a packet which does not match what it displays on the UI, looking forward to the result, thanks.

    Best regards,

    Shuyang

  • Hi again

    I can confirm that Studio is not using the value for pktLen that it displays for the case where you use the 4 bytes CRC.

    A jira ticket has been filed to get this fixed.

    The length should be set like this:

    Length in header = payload length + CRC length

    Length in TX command = header length + payload length

    4 byte payload and 2 byte CRC:

    Length in header = payload length + CRC length = 4 + 2 = 6

    Length in TX command (pktLen) = header length + payload length = 2 + 4 = 6

    4 byte payload and 4 byte CRC:

    Length in header = payload length + CRC length = 4 + 4 = 8

    Length in TX command (pktLen) = header length + payload length = 2 + 4 = 6

    BR

    Siri