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.

LAUNCHXL-CC1352R1: Network Processor Maximum Payload

Part Number: LAUNCHXL-CC1352R1


What is the maximum payload length that can be use to Tx with rfEasyLinkNp example. And I use rfstudio as the receiever.

I am using AT commands to send some data which are read from a text file.

The maxium payload length achieved by me is 70bytes. 

What is the maximum payload length ?

This is my Bash Script.

#!/bin/bash

echo "Enter File Name"
read name
file="$name"

echo "Define Payload Size"
read y

sleep 1
echo $(echo 'AT+I 0001<CR>' > /dev/ttyS3) #mode configure
sleep 1
echo $(echo 'ATPFR=868000000<CR>' > /dev/ttyS3) #frequnecy configure
sleep 1
echo $(echo 'ATPBM=0<CR>' > /dev/ttyS3) #0,1,1B for decimal,hex,binary
sleep 1

x=$(wc -c "$name" | awk '{print $1}' ) #get file size in bytes
#let "y= $x/$pack" #divide into chunks this is OLD method


echo "-----------------------------------"
echo "-----------------------------------"
echo "Total bytes: $x >>>> Payload: $y >>>> Total Chunks: $(expr $x / $y)"
echo "-----------------------------------"
echo "-----------------------------------"
sleep 2
n=0 #start byte
r=$x #remaining bytes
while [ $n -le $x ] #loop start here
do
r=$((x-n)) #remaining counter

echo "Starting Byte:$n ------------ Remaining:$r"
#dd if="$name" ibs=1 skip=$n count=$y>> wr.txt #write to local file name wr.txt in same folder
#sleep 0.02
echo "------------------------------------------"
echo $(dd if="$name" ibs=1 skip=$n count=$y)
echo $(echo "AT+TX $(dd if="$name" ibs=1 skip=$n count=$y)" > /dev/ttyS3) #send the chunk via AT command
sleep 0.00 #this is where changed to measure time

n=$((n+y)) #count and shift to next payload

done