[hpsdr] problems using WDSP library

Eduardo Alonso ea3ghs at gmail.com
Tue May 2 05:00:33 PDT 2017


Hello friends,
Hello Matt,

I am having problems in my first steps with WDSP library under linux.
With the very minimal example that I copy below, everything runs fine.
see: http://ea3ghs.qrp.cat/332-tx-fm.png

But if I call SetTXABandpassFreqs(1,-3000,3000) the output signal
disappears !!!.

This problem also appears in other modes than FM.
I think I am not initializing correctly the library, but in
the documentation says nothing about the correct (init) procedure.

Could you give some clues?
Thanks in advance,
Eduardo EA3GHS

//WDSP EXAMPLE
//complete code: http://ea3ghs.qrp.cat/332c.tgz
main()
{
SNDReset();

OpenChannel(1, FRAMES, 2048, 48000, 48000, 48000, 1, 0, 0.010, 0.025,
0.000, 0.010, 0);
SetTXAMode(1,TXA_FM);
TXASetNC(1, 2048);
TXASetMP(1, 0);
//SetTXABandpassFreqs(1,-3000,3000);  //if I activate this line, I will
have no output signal
SetChannelState (1,1,1);

while(1)
    {
    SNDRead(); //blocking read call
    for(i=0;i<BUF;i++){in[i]=(double)rdbuf[i];in[i]/=0x7fff;}
    e=0; do {fexchange0(1,in,out,&e);} while(e);
    for(i=0;i<BUF;i++){wrbuf[i]=(s16)(out[i]*0x7fff);}
    SNDWrite();
    }
}
//END

ps:
The library version is the Linux port from John Melton, and
inside comm.h appears a "(C) 2017 Warren Pratt, NR0V, Jae Stutzman, K5JAE"
see http://ea3ghs.qrp.cat/332c.tgz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openhpsdr.org/pipermail/hpsdr-openhpsdr.org/attachments/20170502/449be41a/attachment.htm>


More information about the Hpsdr mailing list