Page 7 of 9

Re: SDRPLAY linux commandline tools?

Posted: Fri Mar 18, 2016 8:48 pm
by 0815
thx sasan,

that did the job, but still not getting adsb data out with dump1090 using the --ifile option.....

Re: SDRPLAY linux commandline tools?

Posted: Sat Mar 19, 2016 1:36 am
by sdrplay
Check this post for ADS-B support...

viewtopic.php?f=7&t=591

Best regards,

SDRplay Support

Re: SDRPLAY linux commandline tools?

Posted: Sun Mar 20, 2016 8:03 am
by 0815
@sdrplay,

is there an easy way to implement the gain adjustment to the rawIQ:

Code: Select all

 /* adjust gain if required */
            if (max_sig > MAX_GAIN_THRESH) mir_sdr_SetGr (1, 0, 0);
            if (max_sig < MIN_GAIN_THRESH) mir_sdr_SetGr (-1, 0, 0);
if yes please let me know how?

can i use the ibuf and qbuf for it?

Code: Select all

for (i = 0; i < count1 >> 1; i++)
        {
		    sig_i = (ibuf[input_index] >> 8) + 127;
            if (sig_i < 0) sig_i = 0;
		    dptr[data_index++] = (unsigned char) sig_i;

		    sig_q = (qbuf[input_index++] >> 8) + 127;
            if (sig_q < 0) sig_q = 0;
		    dptr[data_index++] = (unsigned char) sig_q;

            if (sig_i > max_sig) max_sig = sig_i;
        }
but what to take for:

Code: Select all

if (data_index >= (MODES_ASYNC_BUF_SIZE * MODES_ASYNC_BUF_NUMBER))
thx
regards

Re: SDRPLAY linux commandline tools?

Posted: Sun Mar 20, 2016 8:40 am
by sdrplay
you want to implement AGC?

that code you've pasted comes from the ADS-B code doesn't it? That's specific to the signal we're looking for there. You probably want a more generic AGC algorithm, I could probably add a simple scheme but I'm a bit backed up with other stuff at the moment, need more hours in the day :(

SDRplay Support

Re: SDRPLAY linux commandline tools?

Posted: Sun Mar 20, 2016 10:55 am
by 0815
yep it is from the ADSB code, ok i thought you might have something wirkong out of the box - no problem, just drop some code here when you are bored ;)
thx
regards

Re: SDRPLAY linux commandline tools?

Posted: Sat Apr 02, 2016 3:33 pm
by 0815
Hi,

any news regarding the AGC?

regards

Re: SDRPLAY linux commandline tools?

Posted: Sun Apr 24, 2016 5:28 pm
by 0815
*push*

Re: SDRPLAY linux commandline tools?

Posted: Sat Jun 04, 2016 4:39 pm
by 0815
push again....

Re: SDRPLAY linux commandline tools?

Posted: Sat Jun 11, 2016 6:30 pm
by sdrplay
sorry 0815 please bear with us, we're in the middle of getting the new API released. We have pushed the AGC into the API and also made the API easier to use.

So you will just be able to start stream and then turn AGC on/off with one line of code. We're trying to get it ready for release very soon.

Best regards,

SDRplay Support

Re: SDRPLAY linux commandline tools?

Posted: Sat Jul 16, 2016 5:00 am
by 0815
@sdrplay,

well after updating the api my rawIQ wont work anymore...

./rawIQ: symbol lookup error: /usr/local/lib/libmirsdrapi-rsp.so: undefined symbol: pow

maybe you can drop some code here...thanks!

regards