# LoRa Resource Allocation Algorithm for Higher Data Rates
## 3 LRA Algorithm Framework
### Resource Allocation Algorithm
Table 2 shows the results for the total parallel transmission time of a 24 kB image over the LC. The delay column represents the minimum time required to process received packets on both LoRa modules, ensuring no packets are missing. This delay time is determined through repeated transmissions using the same parameter set. As shown in (6), a higher BW results in a higher BR, which in turn reduces the \(T_{tx}\). The fastest image transfer was achieved with a BW of 500 kHz. This experiment was repeated for various combinations of SFs, with the corresponding \(T_{tx}\)s reported in Figure 5:8

The LRA algorithm allocates data to ensure a balanced packet distribution between the two transmitters for various SF combinations. The proportions for each SF combination are as follows. For SFs 7 and 9, 75% of the image data is allocated to SF = 7, and 25% to SF = 9. For SFs 7 and 10, 85% is allocated to SF = 7, and 15% to SF = 10. For SFs 8 and 9, 67% of the data is assigned to SF = 8, and 33% to SF = 9. Lastly, for SFs 8 and 10, 75% is allocated to SF = 8, and 25% to SF = 10. \begin{table}
\begin{tabular}{c c c c c c c c} \hline \hline
**BW (kHz)** & **SF** & **Delay (ms)** & **RSSI (dBm)** & \(T_{tx}\) **(s)** & \(E_{tx}\) **(l)** & \(E_{rx}\) **(l)** & \(E_{total}\) **(l)** \\ \hline \multirow{2}{*}{125} & 7 & \multirow{2}{*}{950} & \(-41\) & \multirow{2}{*}{48.776} & \multirow{2}{*}{13.34} & \multirow{2}{*}{1.85} & \multirow{2}{*}{15.85} \\ \cline{2-2} \cline{5-8}  & 8 & & & & & & \\ \hline \multirow{2}{*}{125} & 7 & \multirow{2}{*}{2000} & \(-41\) & \multirow{2}{*}{94.206} & \multirow{2}{*}{27.05} & \multirow{2}{*}{3.57} & \multirow{2}{*}{30.62} \\ \cline{2-2} \cline{5-8}  & 8 & & & & & & \\ \hline \multirow{2}{*}{125} & 8 & \multirow{2}{*}{1450} & \(-38\) & \multirow{2}{*}{73.519} & \multirow{2}{*}{21.11} & \multirow{2}{*}{2.79} & \multirow{2}{*}{23.9} \\ \cline{2-2} \cline{5-8}  & 9 & & & & & & \\ \hline \multirow{2}{*}{250} & 8 & \multirow{2}{*}{2500} & \(-37\) & \multirow{2}{*}{122.742} & \multirow{2}{*}{35.24} & \multirow{2}{*}{4.69} & \multirow{2}{*}{39.93} \\ \cline{2-2} \cline{5-8}  & 10 & & & & & & \\ \hline \multirow{2}{*}{250} & 7 & \multirow{2}{*}{600} & \(-44\) & \multirow{2}{*}{26.434} & \multirow{2}{*}{7.59} & \multirow{2}{*}{1.00} & \multirow{2}{*}{8.59} \\ \cline{2-2} \cline{5-8}  & 9 & & & & & & \\ \hline \multirow{2}{*}{250} & 7 & \multirow{2}{*}{900} & \(-44\) & \multirow{2}{*}{42.126} & \multirow{2}{*}{12.09} & \multirow{2}{*}{1.60} & \multirow{2}{*}{13.69} \\ \cline{2-2} \cline{5-8}  & 10 & & & & & & \\ \hline \multirow{2}{*}{250} & 8 & \multirow{2}{*}{870} & \(-37\) & \multirow{2}{*}{38.213} & \multirow{2}{*}{10.97} & \multirow{2}{*}{1.45} & \multirow{2}{*}{12.42} \\ \cline{2-2} \cline{5-8}  & 9 & & & & & & \\ \hline \multirow{2}{*}{250} & 8 & \multirow{2}{*}{1150} & \(-35\) & \multirow{2}{*}{53.12} & \multirow{2}{*}{15.25} & \multirow{2}{*}{2.06} & \multirow{2}{*}{17.31} \\ \cline{2-2} \cline{5-8}  & 10 & & & & & & \\ \hline \multirow{2}{*}{500} & 7 & \multirow{2}{*}{350} & \(-42\) & \multirow{2}{*}{16.758} & \multirow{2}{*}{4.81} & \multirow{2}{*}{0.64} & \multirow{2}{*}{5.45} \\ \cline{2-2} \cline{5-8}  & 9 & & & & & & \\ \hline \multirow{2}{*}{500} & 7 & \multirow{2}{*}{500} & \(-44\) & \multirow{2}{*}{23.675} & \multirow{2}{*}{6.80} & \multirow{2}{*}{0.89} & \multirow{2}{*}{7.69} \\ \cline{2-2} \cline{5-8}  & 10 & & & & & & \\ \hline \multirow{2}{*}{500} & 8 & \multirow{2}{*}{460} & \(-35\) & \multirow{2}{*}{22.45} & \multirow{2}{*}{6.44} & \multirow{2}{*}{0.85} & \multirow{2}{*}{7.29} \\ \cline{2-2} \cline{5-8}  & 9 & & & & & & \\ \hline \multirow{2}{*}{500} & 7 & \multirow{2}{*}{650} & \(-37\) & \multirow{2}{*}{29.971} & \multirow{2}{*}{8.60} & \multirow{2}{*}{1.14} & \multirow{2}{*}{9.74} \\ \cline{2-2} \cline{5-8}  & 10 & & & & & & \\ \hline \hline \end{tabular}
\end{table} 
Table 2: \(T_{tx}\) results for parallel transmission of a 24 kB image over the LC on SFs 7 and 8.