<div dir="ltr">Hi Bill,<div><br></div><div>  I have a couple questions:</div><div><br></div><div>a)  Are the dropped frames randomly spaced in time, or are they sequential?</div><div>b)  Have you done the phase coherence check yet by feeding in a sine wave tone?  That would be important.</div><div><br></div><div>73</div><div>Phil W1PJE</div><div><br></div><div>73</div><div>Phil W1PJE</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 23, 2019 at 1:15 PM Engelke, Bill via TangerineSDR <<a href="mailto:tangerinesdr@lists.tapr.org">tangerinesdr@lists.tapr.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">
<div class="gmail-m_-2133078278774768486WordSection1">
<p class="MsoNormal">I finally have a simulation which I believe is faithful to the design target for the speed of the Tangerine.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The Red Pitaya (in HPDSDR emulation mode) is able to output 2 (I/Q) channels, each at 48 ksps (for a total output of 96 ksps).  To simulate 192 ksps, in Digital RF we specify 192,000 as sample rate, duplicate the data 8 times, and save
 each buffer twice. Data output is 96,000 x (2 data saves) X (2 antennas) X (8 bands) X (8 bytes per sample) = 24,576,000 bytes/sec.   The msec/file is set to 4000; so every 4 seconds, the system outputs a file of size 98,311,608 bytes. Since the payload is
 98,304,000 bytes, we see that Digital RF adds very little overhead.  The compression is set to zero, so missing data is not removed (if it occurs); the system will save NaN  (not a number) in the missed values.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Speed test results:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Every buffer save introduces enough delay to make the program miss a few buffers (even when saving to ramdisk).  The percentage of missed data is quite small; for example, in today’s benchmark, we have the following:<u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><u></u> <u></u></span></p>
<table class="gmail-m_-2133078278774768486MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="1079" style="width:809pt;border-collapse:collapse">
<tbody>
<tr style="height:15pt">
<td width="132" nowrap valign="bottom" style="width:99pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal"><span style="font-family:"Courier New";color:black">buffer# sent<u></u><u></u></span></p>
</td>
<td width="143" nowrap valign="bottom" style="width:107pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal"><span style="font-family:"Courier New";color:black">buffer# saved<u></u><u></u></span></p>
</td>
<td width="139" nowrap valign="bottom" style="width:104pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal"><span style="font-family:"Courier New";color:black">buffers sent<u></u><u></u></span></p>
</td>
<td width="135" nowrap valign="bottom" style="width:101pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal"><span style="font-family:"Courier New";color:black">buffers missed<u></u><u></u></span></p>
</td>
<td width="139" nowrap valign="bottom" style="width:104pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal"><span style="font-family:"Courier New";color:black">percent lost<u></u><u></u></span></p>
</td>
<td width="137" nowrap valign="bottom" style="width:103pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal"><span style="font-family:"Courier New";color:black">success rate<u></u><u></u></span></p>
</td>
<td width="255" nowrap valign="bottom" style="width:191pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal"><span style="font-family:"Courier New";color:black">missed data (microseconds)<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:15pt">
<td width="132" nowrap style="width:99pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">5425<u></u><u></u></span></p>
</td>
<td width="143" nowrap valign="bottom" style="width:107pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">5409<u></u><u></u></span></p>
</td>
<td width="139" nowrap valign="bottom" style="width:104pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">5425<u></u><u></u></span></p>
</td>
<td width="135" nowrap valign="bottom" style="width:101pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">16<u></u><u></u></span></p>
</td>
<td width="139" nowrap valign="bottom" style="width:104pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">0.29%<u></u><u></u></span></p>
</td>
<td width="137" nowrap valign="bottom" style="width:103pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="color:black">99.71%<u></u><u></u></span></p>
</td>
<td width="255" nowrap valign="bottom" style="width:191pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">12000<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:15pt">
<td width="132" nowrap style="width:99pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">10766<u></u><u></u></span></p>
</td>
<td width="143" nowrap valign="bottom" style="width:107pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">10757<u></u><u></u></span></p>
</td>
<td width="139" nowrap valign="bottom" style="width:104pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">5341<u></u><u></u></span></p>
</td>
<td width="135" nowrap valign="bottom" style="width:101pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">9<u></u><u></u></span></p>
</td>
<td width="139" nowrap valign="bottom" style="width:104pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">0.17%<u></u><u></u></span></p>
</td>
<td width="137" nowrap valign="bottom" style="width:103pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="color:black">99.83%<u></u><u></u></span></p>
</td>
<td width="255" nowrap valign="bottom" style="width:191pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">6750<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:15pt">
<td width="132" nowrap style="width:99pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">16107<u></u><u></u></span></p>
</td>
<td width="143" nowrap valign="bottom" style="width:107pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">16098<u></u><u></u></span></p>
</td>
<td width="139" nowrap valign="bottom" style="width:104pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">5341<u></u><u></u></span></p>
</td>
<td width="135" nowrap valign="bottom" style="width:101pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">9<u></u><u></u></span></p>
</td>
<td width="139" nowrap valign="bottom" style="width:104pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">0.17%<u></u><u></u></span></p>
</td>
<td width="137" nowrap valign="bottom" style="width:103pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="color:black">99.83%<u></u><u></u></span></p>
</td>
<td width="255" nowrap valign="bottom" style="width:191pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">6750<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:15pt">
<td width="132" nowrap style="width:99pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">21469<u></u><u></u></span></p>
</td>
<td width="143" nowrap valign="bottom" style="width:107pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">21440<u></u><u></u></span></p>
</td>
<td width="139" nowrap valign="bottom" style="width:104pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">5362<u></u><u></u></span></p>
</td>
<td width="135" nowrap valign="bottom" style="width:101pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">29<u></u><u></u></span></p>
</td>
<td width="139" nowrap valign="bottom" style="width:104pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">0.54%<u></u><u></u></span></p>
</td>
<td width="137" nowrap valign="bottom" style="width:103pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="color:black">99.46%<u></u><u></u></span></p>
</td>
<td width="255" nowrap valign="bottom" style="width:191pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">21750<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:15pt">
<td width="132" nowrap style="width:99pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">26803<u></u><u></u></span></p>
</td>
<td width="143" nowrap valign="bottom" style="width:107pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">26801<u></u><u></u></span></p>
</td>
<td width="139" nowrap valign="bottom" style="width:104pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">5334<u></u><u></u></span></p>
</td>
<td width="135" nowrap valign="bottom" style="width:101pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">2<u></u><u></u></span></p>
</td>
<td width="139" nowrap valign="bottom" style="width:104pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">0.04%<u></u><u></u></span></p>
</td>
<td width="137" nowrap valign="bottom" style="width:103pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="color:black">99.96%<u></u><u></u></span></p>
</td>
<td width="255" nowrap valign="bottom" style="width:191pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">1500<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:15pt">
<td width="132" nowrap style="width:99pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">32151<u></u><u></u></span></p>
</td>
<td width="143" nowrap valign="bottom" style="width:107pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">32135<u></u><u></u></span></p>
</td>
<td width="139" nowrap valign="bottom" style="width:104pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">5348<u></u><u></u></span></p>
</td>
<td width="135" nowrap valign="bottom" style="width:101pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">16<u></u><u></u></span></p>
</td>
<td width="139" nowrap valign="bottom" style="width:104pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">0.30%<u></u><u></u></span></p>
</td>
<td width="137" nowrap valign="bottom" style="width:103pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="color:black">99.70%<u></u><u></u></span></p>
</td>
<td width="255" nowrap valign="bottom" style="width:191pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">12000<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:15pt">
<td width="132" nowrap style="width:99pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">37499<u></u><u></u></span></p>
</td>
<td width="143" nowrap valign="bottom" style="width:107pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">37484<u></u><u></u></span></p>
</td>
<td width="139" nowrap valign="bottom" style="width:104pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">5348<u></u><u></u></span></p>
</td>
<td width="135" nowrap valign="bottom" style="width:101pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">15<u></u><u></u></span></p>
</td>
<td width="139" nowrap valign="bottom" style="width:104pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">0.28%<u></u><u></u></span></p>
</td>
<td width="137" nowrap valign="bottom" style="width:103pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="color:black">99.72%<u></u><u></u></span></p>
</td>
<td width="255" nowrap valign="bottom" style="width:191pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">11250<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:15pt">
<td width="132" nowrap valign="bottom" style="width:99pt;padding:0in 5.4pt;height:15pt">
</td>
<td width="143" nowrap valign="bottom" style="width:107pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Times New Roman",serif">Total  
</span><span style="font-size:10pt;font-family:Wingdings">à</span><span style="font-size:10pt;font-family:"Times New Roman",serif"><u></u><u></u></span></p>
</td>
<td width="139" nowrap valign="bottom" style="width:104pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">37499<u></u><u></u></span></p>
</td>
<td width="135" nowrap valign="bottom" style="width:101pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">96<u></u><u></u></span></p>
</td>
<td width="139" nowrap valign="bottom" style="width:104pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">0.26%<u></u><u></u></span></p>
</td>
<td width="137" nowrap valign="bottom" style="width:103pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="color:black">99.74%<u></u><u></u></span></p>
</td>
<td width="255" nowrap valign="bottom" style="width:191pt;padding:0in 5.4pt;height:15pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Courier New";color:black">72000<u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">It is interesting to note that, during this test, I started the drf mirror utility, which copies the data from ramdisk to spinning disk (I found that setting the process priority of drf to -5 [higher than pihpsdr] was necessary to get the
 data save to work.  It was able to keep up with the amount of data being moved, so I conclude that this is a workable solution; the science users will have to weigh in on whether this amount of data loss is acceptable. I’m not sure how to speed this system
 up any further with this hardware.  Attached is source code for the part of pihpsdr which I modified to save the Dgitial RF data; if anybody spots any bug, I am interested to know,.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">W. D. Engelke (Bill), Asst. Research Engr. AB4EJ<u></u><u></u></p>
<p class="MsoNormal">Center for Advanced Public Safety<u></u><u></u></p>
<p class="MsoNormal">Cyber Hall<u></u><u></u></p>
<p class="MsoNormal">The University of Alabama<u></u><u></u></p>
<p class="MsoNormal">Tuscaloosa, AL 35487<u></u><u></u></p>
<p class="MsoNormal">Desk: (205) 348-7244<u></u><u></u></p>
<p class="MsoNormal">Mobile: (205) 764-3099<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

-- <br>
TangerineSDR mailing list<br>
<a href="mailto:TangerineSDR@lists.tapr.org" target="_blank">TangerineSDR@lists.tapr.org</a><br>
<a href="http://lists.tapr.org/mailman/listinfo/tangerinesdr_lists.tapr.org" rel="noreferrer" target="_blank">http://lists.tapr.org/mailman/listinfo/tangerinesdr_lists.tapr.org</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">----<br>Phil Erickson<br><a href="mailto:phil.erickson@gmail.com" target="_blank">phil.erickson@gmail.com</a><br></div>