Hello Phil,<div><br></div><div>Yes - I thought about the latency issue as well - do we have an idea of what the latency really is?</div><div><br></div><div>73's,</div><div>John</div><div>AJ6BC<br><br><div class="gmail_quote">
On Thu, Mar 8, 2012 at 6:31 PM, Phil Harman <span dir="ltr"><<a href="mailto:phil@pharman.org">phil@pharman.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
John,<br>
<br>
Preferable to do the calculation in the PC rather than the FPGA. There are<br>
approximations to SQRT that would be good enough for calculating SWR and<br>
are easy to implement in the FPGA.<br>
<br>
This should be straightforward to implement in PowerSDR. It's sure to work<br>
for a steady carrier but latency issues my cause a problem with modes that<br>
have amplitude variations.<br>
<br>
73 Phil...VK6APH<br>
<div><div class="h5"><br>
<br>
> HPSDR,<br>
><br>
> I think it makes more sense for PowerSDR to do this computation than doing<br>
> it on PennyLane - both the Forward and Reflected Power are transmitted to<br>
> PowerSDR in the packet transmission.<br>
> (assuming the SWR cable and Alex is being used; of course.)<br>
><br>
> Since doing fast floating point on the PC is so much simpler and faster -<br>
> why wouldn't we want to do the computation there?<br>
><br>
> SWR = (1 + SQRT(ABS(Pr/Pf)) / ( 1 - SQRT(ABS(Pr/Pf) rho =<br>
> SQRT(ABS(Pr/Pf) - then<br>
> SWR = ( 1 + rho ) / ( 1 - rho )<br>
><br>
> The ABS may be superfluous in this case since the ADC can't read negative<br>
> I<br>
> suppose.<br>
><br>
> Seems simpler to do on the PC side with the current architecture. Am I<br>
> missing something here?<br>
><br>
> 73's,<br>
> John<br>
> AJ6BC<br>
><br>
> On Thu, Mar 8, 2012 at 11:45 AM, John Westmoreland <<br>
> <a href="mailto:john@westmorelandengineering.com">john@westmorelandengineering.com</a>> wrote:<br>
><br>
>> Phil & HPSDR,<br>
>><br>
>> OK - took a look at the code and have some test code implemented - issue<br>
>> is using real #'s in the Verilog environment for the FPGA; specifically<br>
>> -<br>
>> two functions, square root and absolute value are needed to compute SWR<br>
>> correctly from the current hardware configuration. Another possibility<br>
>> is<br>
>> if Voltage or Current can be extracted - then that would make the<br>
>> calculation simpler.<br>
>> From some rough testing I did sending an SWR test value over vs. the<br>
>> Reflected Power - looks like it was working. To be sure I will want to<br>
>> review the code for PowerSDR though.<br>
>><br>
>> 73's,<br>
>> John<br>
>> AJ6BC<br>
>><br>
>><br>
>> On Wed, Mar 7, 2012 at 6:07 PM, John Westmoreland <<br>
>> <a href="mailto:john@westmorelandengineering.com">john@westmorelandengineering.com</a>> wrote:<br>
>><br>
>>> Hello Phil,<br>
>>><br>
>>> If this can be implemented in PennyLane then that is great.<br>
>>><br>
>>> I will take a look at the source and see what it will take.<br>
>>><br>
>>> 73's,<br>
>>> John<br>
>>> AJ6BC<br>
>>><br>
>>><br>
>>> On Wed, Mar 7, 2012 at 4:39 PM, Phil Harman <<a href="mailto:phil@pharman.org">phil@pharman.org</a>> wrote:<br>
>>><br>
>>>> Hi John,<br>
>>>><br>
>>>> Your correct, we did look at this before. From memory the issues is<br>
>>>> that there is a delay between the FWD and REV samples that means for<br>
>>>> other<br>
>>>> than a steady carrier the SWR reading is meaningless. I think this<br>
>>>> was a<br>
>>>> problem with the Flex hardware but not sure if we will have the same<br>
>>>> problem.<br>
>>>><br>
>>>> The solution may be to calculate the SWR in the FPGA on Penny(Lane)<br>
>>>> since that will have the least sample delays.<br>
>>>><br>
>>>> 73 Phil...VK6APH<br>
>>>><br>
>>>><br>
>>>><br>
</div></div>>>>> *From:* John Westmoreland <<a href="mailto:john@westmorelandengineering.com">john@westmorelandengineering.com</a>><br>
>>>> *Sent:* Thursday, March 08, 2012 3:37 AM<br>
>>>> *To:* HPSDR list <<a href="mailto:hpsdr@lists.openhpsdr.org">hpsdr@lists.openhpsdr.org</a>><br>
>>>> *Subject:* [hpsdr] Getting PowerSDR to display SWR<br>
<div class="im">>>>><br>
>>>> ***** High Performance Software Defined Radio Discussion List *****<br>
>>>><br>
</div>>>>> ------------------------------<br>
<div class="im">>>>> HPSDR,<br>
>>>><br>
>>>> I am sure this has been discussed before - but I can't seem to find it<br>
>>>> in the archives.<br>
>>>><br>
>>>> Is there a way to get PowerSDR to display SWR on the TX Meter? In the<br>
>>>> configuration settings there is a box to pick for this - but when you<br>
>>>> run<br>
>>>> there is not a way to select SWR.<br>
>>>> Reflected Power is there - but not SWR.<br>
>>>><br>
>>>> Thanks in Advance.<br>
>>>><br>
>>>> 73's,<br>
>>>> John<br>
>>>> AJ6BC<br>
>>>><br>
</div>>>>> ------------------------------<br>
<div class="HOEnZb"><div class="h5">>>>> _______________________________________________<br>
>>>> HPSDR Discussion List<br>
>>>> To post msg: <a href="mailto:hpsdr@openhpsdr.org">hpsdr@openhpsdr.org</a><br>
>>>> Subscription help:<br>
>>>> <a href="http://lists.openhpsdr.org/listinfo.cgi/hpsdr-openhpsdr.org" target="_blank">http://lists.openhpsdr.org/listinfo.cgi/hpsdr-openhpsdr.org</a><br>
>>>> HPSDR web page: <a href="http://openhpsdr.org" target="_blank">http://openhpsdr.org</a><br>
>>>> Archives: <a href="http://lists.openhpsdr.org/pipermail/hpsdr-openhpsdr.org/" target="_blank">http://lists.openhpsdr.org/pipermail/hpsdr-openhpsdr.org/</a><br>
>>>><br>
>>>><br>
>>><br>
>><br>
><br>
<br>
<br>
</div></div></blockquote></div><br></div>