From osmocom-sdr-mail at alintech.com.au Fri Nov 13 06:21:31 2015 From: osmocom-sdr-mail at alintech.com.au (Wilson Waters) Date: Fri, 13 Nov 2015 14:21:31 +0800 Subject: [PATCH] rtl_fm null squelch Message-ID: <5645816B.8020105@alintech.com.au> Hi all, I've created a simple little change for rtl_fm which outputs values of 0 (instead of nothing) when the output is squelched. Use the command option "-E nullsquelch" to enable. This is useful when live streaming output to icecast or similar which requires a constant stream of data (such as http://rtl-sdr.com/forum/viewtopic.php?f=7&t=141 or http://www.windytan.com/2013/07/squelch-it-out.html). Hopefully someone can merge this into the git repo, otherwise just patch and build yourself. Cheers, Wilson -- *Wilson Waters* | Software Engineer *Alintech* e: wilson.waters at alintech.com.au w: www.alintech.com.au -------------- next part -------------- diff --git a/src/rtl_fm.c b/src/rtl_fm.c index e89e42d..4c314f7 100644 --- a/src/rtl_fm.c +++ b/src/rtl_fm.c @@ -131,7 +131,7 @@ struct demod_state int downsample; /* min 1, max 256 */ int post_downsample; int output_scale; - int squelch_level, conseq_squelch, squelch_hits, terminate_on_squelch; + int squelch_level, conseq_squelch, squelch_hits, terminate_on_squelch, null_squelch; int downsample_passes; int comp_fir_size; int custom_atan; @@ -205,6 +205,7 @@ void usage(void) "\t deemp: enable de-emphasis filter\n" "\t direct: enable direct sampling\n" "\t offset: enable offset tuning\n" + "\t nullsquelch: output null padding when squelched\n" "\tfilename ('-' means stdout)\n" "\t omitting the filename also uses stdout\n\n" "Experimental options:\n" @@ -812,6 +813,7 @@ static void *dongle_thread_fn(void *arg) static void *demod_thread_fn(void *arg) { + int i; struct demod_state *d = arg; struct output_state *o = d->output_target; while (!do_exit) { @@ -825,7 +827,9 @@ static void *demod_thread_fn(void *arg) if (d->squelch_level && d->squelch_hits > d->conseq_squelch) { d->squelch_hits = d->conseq_squelch + 1; /* hair trigger */ safe_cond_signal(&controller.hop, &controller.hop_m); - continue; + if (!d->null_squelch) { + continue; + } } pthread_rwlock_wrlock(&o->rw); memcpy(o->result, d->result, 2*d->result_len); @@ -1106,6 +1110,8 @@ int main(int argc, char **argv) dongle.direct_sampling = 1;} if (strcmp("offset", optarg) == 0) { dongle.offset_tuning = 1;} + if (strcmp("nullsquelch", optarg) == 0) { + demod.null_squelch = 1;} break; case 'F': demod.downsample_passes = 1; /* truthy placeholder */ From jdpoirier at gmail.com Sun Nov 29 03:00:19 2015 From: jdpoirier at gmail.com (Joseph Poirier) Date: Sat, 28 Nov 2015 21:00:19 -0600 Subject: [PATCH] save gain only when set_gain is successful Message-ID: <1448766019-30383-1-git-send-email-jdpoirier@gmail.com> Signed-off-by: Joseph Poirier --- src/librtlsdr.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/librtlsdr.c b/src/librtlsdr.c index cdf1ca9..fd435b7 100644 --- a/src/librtlsdr.c +++ b/src/librtlsdr.c @@ -1038,13 +1038,10 @@ int rtlsdr_set_tuner_gain(rtlsdr_dev_t *dev, int gain) rtlsdr_set_i2c_repeater(dev, 1); r = dev->tuner->set_gain((void *)dev, gain); rtlsdr_set_i2c_repeater(dev, 0); + if (!r) + dev->gain = gain; } - if (!r) - dev->gain = gain; - else - dev->gain = 0; - return r; } -- 2.5.0 From amber_sarosh at hotmail.com Wed Nov 4 07:24:05 2015 From: amber_sarosh at hotmail.com (Amber and Sarosh) Date: Wed, 04 Nov 2015 07:24:05 -0000 Subject: Changing Configuration Parameters Dynamically - OpenBSC In-Reply-To: References: Message-ID: Hi,Can someone inform us if the VTY configuration commands to change parameters e.g. cell id, location area code, MS power etc. that are run on OpenBSC VTY telnet interface take effect on next restart of the OpenBSC session or during the same session? If former is the case, is there any way to dynamically change Cell ID, LAC, MS TX power etc i.e. without restarting the OpenBSC session? Regards, Amber & Sarosh -------------- next part -------------- An HTML attachment was scrubbed... URL: From osmocom-sdr-mail at alintech.com.au Mon Nov 2 15:24:01 2015 From: osmocom-sdr-mail at alintech.com.au (Wilson Waters) Date: Mon, 02 Nov 2015 15:24:01 -0000 Subject: [PATCH] rtl_fm null squelch Message-ID: <56377E3F.4050606@alintech.com.au> Hi all, I've created a simple little change for rtl_fm which outputs values of 0 (instead of nothing) when the output is squelched. Use the -E nullsquelch option to enable. This is useful when live streaming output to icecast or similar which requires a constant stream of data (such as http://rtl-sdr.com/forum/viewtopic.php?f=7&t=141). Cheers, Wilson. -------------- next part -------------- diff --git a/src/rtl_fm.c b/src/rtl_fm.c index e89e42d..4c314f7 100644 --- a/src/rtl_fm.c +++ b/src/rtl_fm.c @@ -131,7 +131,7 @@ struct demod_state int downsample; /* min 1, max 256 */ int post_downsample; int output_scale; - int squelch_level, conseq_squelch, squelch_hits, terminate_on_squelch; + int squelch_level, conseq_squelch, squelch_hits, terminate_on_squelch, null_squelch; int downsample_passes; int comp_fir_size; int custom_atan; @@ -205,6 +205,7 @@ void usage(void) "\t deemp: enable de-emphasis filter\n" "\t direct: enable direct sampling\n" "\t offset: enable offset tuning\n" + "\t nullsquelch: output null padding when squelched\n" "\tfilename ('-' means stdout)\n" "\t omitting the filename also uses stdout\n\n" "Experimental options:\n" @@ -812,6 +813,7 @@ static void *dongle_thread_fn(void *arg) static void *demod_thread_fn(void *arg) { + int i; struct demod_state *d = arg; struct output_state *o = d->output_target; while (!do_exit) { @@ -825,7 +827,9 @@ static void *demod_thread_fn(void *arg) if (d->squelch_level && d->squelch_hits > d->conseq_squelch) { d->squelch_hits = d->conseq_squelch + 1; /* hair trigger */ safe_cond_signal(&controller.hop, &controller.hop_m); - continue; + if (!d->null_squelch) { + continue; + } } pthread_rwlock_wrlock(&o->rw); memcpy(o->result, d->result, 2*d->result_len); @@ -1106,6 +1110,8 @@ int main(int argc, char **argv) dongle.direct_sampling = 1;} if (strcmp("offset", optarg) == 0) { dongle.offset_tuning = 1;} + if (strcmp("nullsquelch", optarg) == 0) { + demod.null_squelch = 1;} break; case 'F': demod.downsample_passes = 1; /* truthy placeholder */ From del at thegildedturtle.com Wed Nov 25 19:31:35 2015 From: del at thegildedturtle.com (Del Spangler) Date: Wed, 25 Nov 2015 19:31:35 -0000 Subject: Hackrf signed issue on gr-osmosdr for ARM Message-ID: It looks like I'm not the first person to have notices this, because after I submitted a PR to the github project, I noticed another pull request dating from May that has yet to make it into master. Essentially what it boils down to is that char on arm systems, in my case the raspberry pi, are treated as unsigned characters. So right now we have a fix for the hackrf firmware update that only works on x86 systems. A simple change to the source and sink typecasting from char to explicit int8_t on the lookup table on the source.cc should fix this issue for all platforms. In addition, I believe a typecast in the convert function for the sink.cc would do it as well but I have not tested it and I don't believe my current PR reflects that either. -------------- next part -------------- An HTML attachment was scrubbed... URL: