Commit Graph

225 Commits

Author SHA1 Message Date
Dimitri Stolnikov 842e48d101 osmosdr: implement setting of sample rate 2012-06-02 23:57:17 +02:00
Dimitri Stolnikov c6fa979160 osmosdr: disable IQ swapping feature 2012-06-02 23:03:55 +02:00
Dimitri Stolnikov 05700e6092 rtl, osmosdr: reorder buffer allocation to prevent memory leak
the leak would occur if the requested device could not be opened
2012-06-02 22:50:48 +02:00
Dimitri Stolnikov 237385a0c3 respect the signedness
thanks to Hoernchen <la@tfc-server.de>
2012-06-02 22:22:28 +02:00
Dimitri Stolnikov 9ec656dc05 make it play nice with windows
thanks to Hoernchen <la@tfc-server.de>
2012-06-02 21:56:17 +02:00
Dimitri Stolnikov a8625f0290 fix copy & paste errors 2012-06-02 17:02:31 +02:00
Dimitri Stolnikov 869ed6df15 print information about supported components 2012-06-02 01:19:15 +02:00
Dimitri Stolnikov 27dff71304 rtl: read out gain values via library api 2012-06-02 01:18:07 +02:00
Dimitri Stolnikov cd1db62699 osmosdr: read out gain values via library api 2012-06-02 01:16:26 +02:00
Dimitri Stolnikov b2128bc864 fix escape sequence for uhd device arguments example 2012-05-27 17:58:44 +02:00
Dimitri Stolnikov 7ef9ebc7bb cleanup: make _samp_avail signed integer 2012-05-27 14:32:50 +02:00
Dimitri Stolnikov 6194958d71 rtl: clean up work function 2012-05-27 14:27:05 +02:00
Dimitri Stolnikov 674e084bdf rtl_tcp: remove unused variables 2012-05-27 14:02:50 +02:00
Dimitri Stolnikov 4b6018b68c remove OSMOSDR_API usage where appropriate 2012-05-27 13:50:58 +02:00
Dimitri Stolnikov 9a5e93cf0d osmosdr: change implementation to use libosmosdr 2012-05-26 22:24:47 +02:00
Dimitri Stolnikov f4f5918c25 osmosdr_device: change cast to make it compile with clang 2012-05-21 00:46:46 +02:00
Dimitri Stolnikov 625c8b8e8e add Steve and Hoernchen to AUTHORS file 2012-05-20 20:11:47 +02:00
Dimitri Stolnikov e26074615b osmosdr_device: make it compile with boost 1.46.1 2012-05-20 15:30:01 +02:00
Dimitri Stolnikov 3ea0b38810 introduce device discovery api
This API allows to acquire a list of devices connected to the host and
creates an argument string ready to be passed to a source object for
cunstruction.

Each device_t entry contains a "label" entry, which holds the generic
device name which may be shown to the user for device selection.

For certain radio hardware extended entries ("name", "serial", "type")
may be available to make bijective device addressing possible.

The argument string for target types "rtl_tcp" and "file" might be
constructed using the osmosdr::device_t class facilities.

Example:

 #include <osmosdr_device.h>
 #include <osmosdr_source_c.h>

osmosdr::devices_t devs = osmosdr::device::find();

BOOST_FOREACH(osmosdr::device_t &dev, devs) // try to create each dev
  osmosdr_source_c_sptr src = osmosdr_make_source_c(dev.to_string());
2012-05-20 12:55:52 +02:00
Dimitri Stolnikov e256bf332e reapply previous gain value when switched to manual gain mode 2012-05-19 22:47:28 +02:00
Dimitri Stolnikov 8c0be96215 grc: change gain_mode type to int to allow switching at runtime 2012-05-19 22:26:25 +02:00
Dimitri Stolnikov 6bef750ac9 change gain mode argument to 'automatic' for clarity 2012-05-17 10:35:58 +02:00
Dimitri Stolnikov 8748ee2b56 update GRC examples 2012-05-15 18:35:50 +02:00
Dimitri Stolnikov c9637fc181 remove handmade python flowgraph that is not needed anymore 2012-05-15 18:24:35 +02:00
Steve Markgraf 7f796fe1b2 rtl_tcp_source: convert commands from host to network byteorder
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-05-13 23:06:09 +02:00
Dimitri Stolnikov 0e3d1995a0 rtl: skip one buffer full of garbage at the beginning 2012-05-13 20:01:50 +02:00
Dimitri Stolnikov 8e82b44bff rtl_tcp: change device argument syntax to host[:port]
without any arguments the code will try to connect to localhost:1234
2012-05-13 19:49:07 +02:00
Steve Markgraf 20d4ef7e4a rtl_source_c: fix several off-by-one errors
Those summed up and caused sample loss.
Thanks to Hoernchen for helping me tracking those down.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-05-13 04:17:02 +02:00
Dimitri Stolnikov 52b5a8a4d3 uhd: added UHD as dependency for the gr-uhd based module
this may be required for compilation since the gnuradio trunk doesn't
provide UHD's include path via pkg-config.
2012-05-12 23:04:03 +02:00
Dimitri Stolnikov 1097fd7aba cleanup cmake files, remove libusb module 2012-05-12 22:43:21 +02:00
Dimitri Stolnikov 52dea1e0b7 remove unused grc source/sink block files 2012-05-12 20:19:45 +02:00
Dimitri Stolnikov d384cf52e2 append dependency include dirs when building components 2012-05-12 12:41:55 +02:00
Dimitri Stolnikov 9b9c5bfcf4 rtl_tcp: implement frequency correction control 2012-05-07 23:02:36 +02:00
Dimitri Stolnikov e38dc2f427 rtl_tcp: implement sample rate and gain control 2012-05-06 19:42:27 +02:00
Dimitri Stolnikov f94d8da48e rtl_tcp: add initial component files
For use with the rtl_tcp utility acting as a spectrum server.

The "empty" rtl_tcp= device hint might be used to connect to rtl_tcp
running on local machine.
2012-05-05 23:47:00 +02:00
Dimitri Stolnikov 3a066ff258 implement virtually arbitrary gain values
internally, this will pick a certain gain value out of the valid gains
using the "smallest error" strategy.
2012-05-05 21:37:13 +02:00
Dimitri Stolnikov ba0b52868a changed logic value for automatic gain mode
sorry boys & girls!
2012-05-05 21:06:54 +02:00
Dimitri Stolnikov cf1c3ab117 pick first device if no device arguments were specified 2012-05-05 20:43:34 +02:00
Dimitri Stolnikov a6d6602d8a fcd is supported only in single device mode
this is due to underlying original driver's (in)capabilities
2012-05-05 19:00:00 +02:00
Dimitri Stolnikov 0a4b9264a3 rtl_source_c: add buffers argument 2012-05-05 17:50:21 +02:00
Dimitri Stolnikov 3b6c74807c implement internal cache for setter functions
this is prevents GRC calling them multiple times with the same value
2012-05-05 17:35:38 +02:00
Dimitri Stolnikov 47734f299d use manual gain mode by default 2012-05-05 15:00:35 +02:00
Dimitri Stolnikov ce6fc94da3 resolve multisrc merge conflicts 2012-05-05 02:01:53 +02:00
Dimitri Stolnikov 61c2ac81ac change callback order for gain settings 2012-05-05 01:42:03 +02:00
Dimitri Stolnikov 3a47e3661c add api for manual gain mode control 2012-05-05 00:43:32 +02:00
Dimitri Stolnikov f0ac70fa41 file: initial file source support
Example:
  file=/path/to/file.ext,freq=428e6,rate=1e6,repeat=true,throttle=true
2012-04-29 19:55:28 +02:00
Dimitri Stolnikov 34baaf3f93 rtl: add xtal arguments for rtl and tuner chips 2012-04-29 19:53:17 +02:00
Dimitri Stolnikov 6c30964893 strip whitespace 2012-04-29 13:15:02 +02:00
Dimitri Stolnikov ed828d1787 update pkg-config template 2012-04-29 12:14:09 +02:00
Dimitri Stolnikov 99dfd7f197 import doxyxml files from GR tree to make build work with doxygen 2012-04-28 23:52:30 +02:00