rtl_tcp server

Add useful snippets of code or links to entire SDR projects.
TonyHoyle
Posts: 13
Joined: Sun May 24, 2015 9:59 pm

Re: rtl_tcp server

Postby TonyHoyle » Mon Jun 08, 2015 9:16 pm

It may not be possible to use the device on fedora then..

It'd be much easier if we had the source as you could recompile against the libusb on there rather than hoping you get one compatible with both fedora and the one compiled into the driver... You could see if SDRPlay will produce a compiled one, but ultimately it's a problem that will keep cropping up.
Last edited by TonyHoyle on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

TonyHoyle
Posts: 13
Joined: Sun May 24, 2015 9:59 pm

Re: rtl_tcp server

Postby TonyHoyle » Mon Jun 08, 2015 9:24 pm

Latest version plays a lot nicer with the CPU when idle - it seems as soon as you call init the driver starts quite a busy background thread so I now defer that until a client connects.

Lots of mucking around with sample rate - there's a minimum sample rate you can request for a given bandwidth, so now if a client requests a lower one it drops the bandwidth to allow the request rather than ignore it.

Only really AGC to sort out.. Still no idea where to start with that.
Last edited by TonyHoyle on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

NN4F
Posts: 128
Joined: Fri Apr 03, 2015 1:54 pm
Location: Ridgeville, SC
Contact:

Re: rtl_tcp server

Postby NN4F » Wed Jun 10, 2015 1:41 am

Hey Guys,
tried to run this on OS X and get this error... what am I missing?

KMA-iMac27:build PaulJ$ cmake ..
-- The C compiler identification is AppleClang 6.1.0.6020053
-- The CXX compiler identification is AppleClang 6.1.0.6020053
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
MIR_LIBRARY
linked by target "sdrserver" in directory /users/PaulJ/Desktop/sdrplay-master/sdrplay

-- Configuring incomplete, errors occurred!
See also "/users/PaulJ/Desktop/sdrplay-master/sdrplay/build/CMakeFiles/CMakeOutput.log".
Last edited by NN4F on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason
--
Paul Jones - NN4F, Charleston SC
http://www.facebook.com/groups/SDRPlay

ON4LL
Posts: 23
Joined: Wed Jun 10, 2015 1:41 pm

Re: rtl_tcp server

Postby ON4LL » Fri Jun 12, 2015 5:28 pm

Hello,

Do you have some additional information on how to start this , what option to use?

I installed it and compiled it on a Raspberry PI 2
All looks ok ... I have a "sdrserver" at the end of the installation.

but ...when I ./sdrserver .... nothing happens


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

kg7bux
Posts: 2
Joined: Thu May 21, 2015 4:37 pm

Re: rtl_tcp server

Postby kg7bux » Fri Jun 12, 2015 8:21 pm

I think the current version defaults to daemon mode. Use 'pgrep sdrserver' to see if it is running in background. Or you can run it with -g for forground or -d for debug to keep it from entering daemon mode.
Last edited by kg7bux on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

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

Re: rtl_tcp server

Postby sdrplay » Sun Mar 06, 2016 9:09 am

./sdrserver starts it in "daemon" mode, ./sdrserver -g will run it in the foreground.

Someone asked for native gain support which I think means a gain lineup to be compatible with the RTL version. The RSP works with gain reduction (i.e. the amount of gain reduced from the maximum gain). It also has a larger gain range that the RTL device, so you have to restrict the amount of gain reduction steps to get close to the RTL device. Here are a couple of suggested gain lists for those trying this out...

Full gain range

Code: Select all

const int gain_list[] = {     78, 77, 76, 75, 74, 73, 72, 71, 70,
                          69, 68, 67, 66, 65, 64, 63, 62, 61, 60,
                          59, 58, 57, 56, 55, 54, 53, 52, 51, 50,
                          49, 48, 47, 46, 45, 44, 43, 42, 41, 40,
                          39, 38, 37, 36, 35, 34, 33, 32, 31, 30,
                          29, 28, 27, 26, 25, 24, 23, 22, 21, 20,
                          19 };


OR Approximate gain reductions to match rtl_tcp gain lineup for rtl28xx devices

Code: Select all

const int gain_list[] = { 78, 77, 76, 75, 74, 70, 69, 66, 64, 62,
                          61, 58, 57, 55, 53, 50, 48, 45,
                          44, 42, 41, 39, 38, 36, 35, 34,
                          33, 30, 28 };


This should replace the gain_list statement in main.cpp
Last edited by sdrplay on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason


Return to “Code Corner”

Who is online

Users browsing this forum: No registered users and 2 guests