SDRPLAY linux commandline tools?

Add useful snippets of code or links to entire SDR projects.
0815
Posts: 45
Joined: Sat Jan 30, 2016 3:07 pm

Re: SDRPLAY linux commandline tools?

Post by 0815 » Fri Mar 18, 2016 8:48 pm

thx sasan,

that did the job, but still not getting adsb data out with dump1090 using the --ifile option.....
Last edited by 0815 on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

sdrplay
Posts: 978
Joined: Wed Jan 07, 2015 7:58 am

Re: SDRPLAY linux commandline tools?

Post by sdrplay » Sat Mar 19, 2016 1:36 am

Check this post for ADS-B support...

viewtopic.php?f=7&t=591

Best regards,

SDRplay Support
Last edited by sdrplay on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

0815
Posts: 45
Joined: Sat Jan 30, 2016 3:07 pm

Re: SDRPLAY linux commandline tools?

Post by 0815 » Sun Mar 20, 2016 8:03 am

@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
Last edited by 0815 on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

sdrplay
Posts: 978
Joined: Wed Jan 07, 2015 7:58 am

Re: SDRPLAY linux commandline tools?

Post by sdrplay » Sun Mar 20, 2016 8:40 am

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
Last edited by sdrplay on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

0815
Posts: 45
Joined: Sat Jan 30, 2016 3:07 pm

Re: SDRPLAY linux commandline tools?

Post by 0815 » Sun Mar 20, 2016 10:55 am

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
Last edited by 0815 on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

0815
Posts: 45
Joined: Sat Jan 30, 2016 3:07 pm

Re: SDRPLAY linux commandline tools?

Post by 0815 » Sat Apr 02, 2016 3:33 pm

Hi,

any news regarding the AGC?

regards
Last edited by 0815 on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

0815
Posts: 45
Joined: Sat Jan 30, 2016 3:07 pm

Re: SDRPLAY linux commandline tools?

Post by 0815 » Sun Apr 24, 2016 5:28 pm

*push*
Last edited by 0815 on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

0815
Posts: 45
Joined: Sat Jan 30, 2016 3:07 pm

Re: SDRPLAY linux commandline tools?

Post by 0815 » Sat Jun 04, 2016 4:39 pm

push again....
Last edited by 0815 on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

sdrplay
Posts: 978
Joined: Wed Jan 07, 2015 7:58 am

Re: SDRPLAY linux commandline tools?

Post by sdrplay » Sat Jun 11, 2016 6:30 pm

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
Last edited by sdrplay on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

0815
Posts: 45
Joined: Sat Jan 30, 2016 3:07 pm

Re: SDRPLAY linux commandline tools?

Post by 0815 » Sat Jul 16, 2016 5:00 am

@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
Last edited by 0815 on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

Post Reply