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.

CC2530: basicRfSendPacket payload length

Part Number: CC2530

Hi,

Trying to use the light switch code from swrc135b.zip. Successfully sent 5 characters with basicRfSendPacket, but when I try with more than 5 characters, it is not working. Could someone help me with it? CC2530 Software Examples User’s Guide section 5.2.2. says: "1. Create a buffer with the payload to send. Maximum payload size for Basic RF is 103 Bytes."

Thanks,
Milind

  • Hi,

    Is the device still running after attempting to send more than 5 bytes?

    Can you try debugging to see what happens?

    Any other modifications to the code besides increasing the buffer size?

    Regards,
    Toby

     

  • Hi,


    Thanks for replying, please find attached two screenshots attached of a packet sniffer. pl5_light.jpg is for payload length 5 and pl6_lights.jpg is for payload length 6. Notice the NWK FCS and extra fields appearing in the packets captured.


    Thanks,
    Milind

  • The buffer you are sending is in the MAC payload. Notice that the packet length increases by 1 when you send 6 bytes vs when you send 5 bytes.

    It looks like the sniffer is doing some additional interpretation of the packet, resulting in more information being shown in the log.

    Does the receiver at least show that it has received the expected payload?

  • I am now able to send more than 5 characters. I was using a pointer as a parameter previously. The tx & rx in rf is successful but when the size of sent packet increases the additional fields are visible in packet sniffer. My understanding of mac layers is limited as of now.

    Thanks for your help.

    Regards,

    Milind