SDR: Add presets for LimeSDR-Mini

pull/1/head
Andreas Eversberg 5 years ago
parent b2210cd698
commit 279dd25b15
  1. 27
      docs/sdr.html
  2. 19
      src/libmobile/main_mobile.c
  3. 18
      src/radio/main.c
  4. 17
      src/tv/main.c

@ -12,7 +12,7 @@
<ul>
<li><a href="#intro">Introduction</a>
<li><a href="#limesdr">LimeSDR</a>
<li><a href="#limesdr">LimeSDR and LimeSDR Mini</a>
<li><a href="#uhd">UHD</a>
<li><a href="#mchan">Multiple channels</a>
</ul>
@ -63,7 +63,7 @@ and so on...
<p class="toppic">
<a name="limesdr"></a>
LimeSDR
LimeSDR and LimeSDR-Mini
</p>
<p>
@ -76,7 +76,7 @@ In case of B-Netz, I use the following parameters:
# bnetz --sdr-soapy \
--sdr-rx-antenna LNAL \
--sdr-rx-gain 30 \
--sdr-rx-gain 25 \
--sdr-tx-gain 30 \
--sdr-samplerate 5000000 \
--sdr-bandwidth 15000000 \
@ -109,6 +109,27 @@ But still you can add any SDR option afterwards to set or modify them.
</pre>
<p>
LimeSDR-Mini does need some different antenna setting:
</p>
<pre>
...
--sdr-rx-antenna LNAW \
--sdr-tx-antenna BAND2 \
...
</pre>
<p>
As above, you can have these options pre-set by just a single option: <b>--limesdr-mini</b>
</p>
<pre>
# bnetz --limesdr-mini -k 17
</pre>
<p>
<font color="red">Importaint: Select your RX antenna input!</font>
</p>

@ -154,6 +154,8 @@ void main_mobile_print_help(const char *arg0, const char *ext_usage)
#ifdef HAVE_SDR
printf(" --limesdr\n");
printf(" Auto-select several required options for LimeSDR\n");
printf(" --limesdr-mini\n");
printf(" Auto-select several required options for LimeSDR Mini\n");
sdr_config_print_help();
#endif
printf("\nNetwork specific options:\n");
@ -180,6 +182,7 @@ void main_mobile_print_hotkeys(void)
#define OPT_CALL_SAMPLERATE 1005
#define OPT_MNCC_NAME 1006
#define OPT_LIMESDR 1100
#define OPT_LIMESDR_MINI 1101
void main_mobile_add_options(void)
{
@ -209,6 +212,7 @@ void main_mobile_add_options(void)
option_add(OPT_READ_TX_WAVE, "read-tx-wave", 1);
#ifdef HAVE_SDR
option_add(OPT_LIMESDR, "limesdr", 0);
option_add(OPT_LIMESDR_MINI, "limesdr-mini", 0);
sdr_config_add_options();
#endif
};
@ -330,6 +334,21 @@ int main_mobile_handle_options(int short_option, int argi, char **argv)
int argc_lime = sizeof(argv_lime) / sizeof (*argv_lime);
return options_command_line(argc_lime, argv_lime, main_mobile_handle_options);
}
case OPT_LIMESDR_MINI:
{
char *argv_lime[] = { argv[0],
"--sdr-soapy",
"--sdr-rx-antenna", "LNAW",
"--sdr-tx-antenna", "BAND2",
"--sdr-rx-gain", "25",
"--sdr-tx-gain", "30",
"--sdr-samplerate", "5000000",
"--sdr-bandwidth", "15000000",
"-s", "200000",
};
int argc_lime = sizeof(argv_lime) / sizeof (*argv_lime);
return options_command_line(argc_lime, argv_lime, main_mobile_handle_options);
}
#endif
default:
#ifdef HAVE_SDR

@ -142,10 +142,13 @@ void print_help(const char *arg0)
printf(" It uses the 'Pilot-tone' system.\n");
printf(" --limesdr\n");
printf(" Auto-select several required options for LimeSDR\n");
printf(" --limesdr-mini\n");
printf(" Auto-select several required options for LimeSDR Mini\n");
sdr_config_print_help();
}
#define OPT_LIMESDR 1100
#define OPT_LIMESDR_MINI 1101
static void add_options(void)
{
@ -164,6 +167,7 @@ static void add_options(void)
option_add('E', "emphasis", 1);
option_add('S', "stereo", 0);
option_add(OPT_LIMESDR, "limesdr", 0);
option_add(OPT_LIMESDR_MINI, "limesdr-mini", 0);
sdr_config_add_options();
}
@ -245,6 +249,20 @@ static int handle_options(int short_option, int argi, char **argv)
int argc_lime = sizeof(argv_lime) / sizeof (*argv_lime);
return options_command_line(argc_lime, argv_lime, handle_options);
}
case OPT_LIMESDR_MINI:
{
char *argv_lime[] = { argv[0],
"--sdr-soapy",
"--sdr-rx-antenna", "LNAW",
"--sdr-tx-antenna", "BAND2",
"--sdr-rx-gain", "50",
"--sdr-tx-gain", "50",
"--sdr-samplerate", "5000000",
"--sdr-bandwidth", "15000000",
};
int argc_lime = sizeof(argv_lime) / sizeof (*argv_lime);
return options_command_line(argc_lime, argv_lime, handle_options);
}
default:
return sdr_config_handle_options(short_option, argi, argv);
}

@ -121,11 +121,14 @@ void print_help(const char *arg0)
#ifdef HAVE_SDR
printf(" --limesdr\n");
printf(" Auto-select several required options for LimeSDR\n");
printf(" --limesdr-mini\n");
printf(" Auto-select several required options for LimeSDR Mini\n");
sdr_config_print_help();
#endif
}
#define OPT_LIMESDR 1100
#define OPT_LIMESDR_MINI 1101
static void add_options(void)
{
@ -143,6 +146,7 @@ static void add_options(void)
option_add('I', "station-id", 1);
#ifdef HAVE_SDR
option_add(OPT_LIMESDR, "limesdr", 0);
option_add(OPT_LIMESDR_MINI, "limesdr-mini", 0);
sdr_config_add_options();
#endif
}
@ -211,6 +215,19 @@ static int handle_options(int short_option, int argi, char **argv)
int argc_lime = sizeof(argv_lime) / sizeof (*argv_lime);
return options_command_line(argc_lime, argv_lime, handle_options);
}
case OPT_LIMESDR_MINI:
{
char *argv_lime[] = { argv[0],
"--sdr-soapy",
"--sdr-tx-antenna", "BAND2",
"--sdr-tx-gain", "50",
"--sdr-lo-offset", "-3000000",
"--sdr-bandwidth", "60000000",
"-s", "13750000",
};
int argc_lime = sizeof(argv_lime) / sizeof (*argv_lime);
return options_command_line(argc_lime, argv_lime, handle_options);
}
#endif
default:
#ifdef HAVE_SDR

Loading…
Cancel
Save