Re: Bandpass semantics
Alexandru Csete <oz9aec <at> gmail.com>
2006-04-06 08:32:07 GMT
Hi Martin,
On 4/6/06, Martin, AA6E <martin.ewing <at> gmail.com> wrote:
> Looks like I need to extend the TenTec Orion backend a little. I am trying
> to understand the meaning of the bandwidth adjustment options - as they
> would apply to the Orion, but probably other rigs, too.
>
> The Orion provides two passband adjustments "BW" and "PBT". BW is the
> overall bandpass width. This is now implemented through the set_mode()
> function. PBT is a passband offset. Both of these are adjustable in 10 Hz
> increments. (DSP is nice.) PBT is not currently implemented for the Orion,
> as far as I tell.
If PBT is simply the passband offset, then it is practically the same
as IF shift (RIG_LEVEL_IF?). If I understand it correctly, twin PBT
shifts separately the inside and outside passbands (whatever they may
be), thus allowing to narrow or widen the effective passband. Only
when you shift both PBT_IN and PBT_OUT simultaneously are you shifting
the entire IF.
> I want to know how to deal with the Orion PBT. The only piece of the API
> that seems to possibly apply is RIG_LEVEL_PBT_IN and RIG_LEVEL_PBT_OUT, but
> they range from 0 --> 1.0.
If the Orion PBT simply shifts the passband I would use RIG_LEVEL_IF
(unless it is meant for something else than IF shift, I can't tell).
PBT_IN and PBT_OUT I would only use for rigs with twin PBT.
As for the range, well, you can imagine that different rigs have very
different ranges for their level settings. Therefore, I think it was a
very good idea to introduce this uniform range in the hamlib API and
leaving it for the backend to scale the values properly.
If you want to go all the way, there is the possibility to define
granularity tables in the rig_caps for all supported levels. That can
help the frontends to convert the 0..1 range to human readable ranges
> I could make a guess what to do, but could we have an authoritative
> statement of what the relationship of set_mode and these two levels is
> supposed to be?
I leave to authoritative statement to someone else, but I can give you
my understanding.
The passband width is what would correspond to a specific crystal
filter in a non-dsp rig. Usually, the rig has different set of
filters for different modes and that is why mode and passband go
together in the same API call. In DSP rigs, you may have variable
passband width regardless of mode and so this link between mode and
passband width may not make much sense.
PBT and IF shift, on the other hand, have always been independent of
the mode (except that they may not be available in modes like FM) and
so there is no particular link between the mode and the PBT setting.
>
> And then there are passband_{narrow|normal|wide}. What are these supposed
> to mean in a DSP rig? We can just pick some good values, I suppose.
For a DSP rig with variable pass band width you can just pick some
good values, depending on the mode, for example 250Hz, 500Hz and
2.3kHz would be apropriate for CW.
> Thanks!
>
> 73 Martin AA6E
>
> --
> martin.ewing <at> gmail.com - AA6E <at> arrl.net
> President, Yale University Amateur Radio Club - W1YU
> http://blog.aa6e.net
73
Alex OZ9AEC
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642