Skip to content

Commit

Permalink
version 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rafael2k committed Sep 17, 2024
1 parent 18d1956 commit 213c874
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,20 @@ Mercury has different operating modes and parameters. Usage parameters:

```
Usage modes:
./mercury -m [mode] -i [device] -o [device] -r [radio_type] -x [sound_system]
./mercury -m ARQ -i [device] -o [device] -r [radio_type] -x [sound_system] -p [arq_tcp_base_port]
./mercury -m [mode] -s [modulation_config] -i [device] -o [device] -r [radio_type] -x [sound_system]
./mercury -m ARQ -s [modulation_config] -i [device] -o [device] -r [radio_type] -x [sound_system] -p [arq_tcp_base_port]
./mercury -h
Options:
-c [cpu_nr] Run on CPU cpu_nr. Defaults to CPU 3. Use -1 to disable CPU selection.
-c [cpu_nr] Run on CPU [cpu_br]. Defaults to CPU 3. Use -1 to disable CPU selection.
-m [mode] Available operating modes are: ARQ, TX_SHM, RX_SHM, TX_TEST, RX_TEST, TX_RAND, RX_RAND, PLOT_BASEBAND, PLOT_PASSBAND.
-s [modulation_config] Sets modulation configuration for non-ARQ setups (0 to 16). Use "-l" for listing all available modulations.
-s [modulation_config] Sets modulation configuration for all modes including ARQ, except when gear-shift is enabled. Modes: 0 to 16. Use "-l" for listing all available modulations.
-r [radio_type] Available radio types are: stockhf, sbitx.
-i [device] Radio Capture device id (eg: "plughw:0,0").
-o [device] Radio Playback device id (eg: "plughw:0,0").
-x [sound_system] Sets the sound system API to use: alsa, pulse, dsound or wasapi.
-x [sound_system] Sets the sound system API to use: alsa, pulse, dsound or wasapi. Default is alsa on Linux and dsound on Windows.
-p [arq_tcp_base_port] Sets the ARQ TCP base port (control is base_port, data is base_port + 1). Default is 7002.
-g Enables the adaptive modulation/robustness selection (gear-shifting). Experimental!
-g Enables the adaptive modulation selection (gear-shifting). Not working yet!.
-l Lists all modulator/coding modes.
-z Lists all available sound cards.
-h Prints this help.
Expand Down
10 changes: 5 additions & 5 deletions source/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,19 @@ int main(int argc, char *argv[])
if (argc < 2)
{
manual:
printf("Usage modes: \n%s -m [mode] -i [device] -o [device] -r [radio_type] -x [sound_system]\n", argv[0], argv[0]);
printf("%s -m ARQ -i [device] -o [device] -r [radio_type] -x [sound_system] -p [arq_tcp_base_port]\n", argv[0], argv[0]);
printf("Usage modes: \n%s -m [mode] -s [modulation_config] -i [device] -o [device] -r [radio_type] -x [sound_system]\n", argv[0], argv[0]);
printf("%s -m ARQ -s [modulation_config] -i [device] -o [device] -r [radio_type] -x [sound_system] -p [arq_tcp_base_port]\n", argv[0], argv[0]);
printf("%s -h\n", argv[0]);
printf("\nOptions:\n");
printf(" -c [cpu_nr] Run on CPU [cpu_br]. Defaults to CPU 3. Use -1 to disable CPU selection.\n");
printf(" -m [mode] Available operating modes are: ARQ, TX_SHM, RX_SHM, TX_TEST, RX_TEST, TX_RAND, RX_RAND, PLOT_BASEBAND, PLOT_PASSBAND.\n");
printf(" -s [modulation_config] Sets modulation configuration for non-ARQ setups (0 to 16). Use \"-l\" for listing all available modulations.\n");
printf(" -s [modulation_config] Sets modulation configuration for all modes including ARQ, except when gear-shift is enabled. Modes: 0 to 16. Use \"-l\" for listing all available modulations.\n");
printf(" -r [radio_type] Available radio types are: stockhf, sbitx.\n");
printf(" -i [device] Radio Capture device id (eg: \"plughw:0,0\").\n");
printf(" -o [device] Radio Playback device id (eg: \"plughw:0,0\").\n");
printf(" -x [sound_system] Sets the sound system API to use: alsa, pulse, dsound or wasapi.\n");
printf(" -x [sound_system] Sets the sound system API to use: alsa, pulse, dsound or wasapi. Default is alsa on Linux and dsound on Windows.\n");
printf(" -p [arq_tcp_base_port] Sets the ARQ TCP base port (control is base_port, data is base_port + 1). Default is 7002.\n");
printf(" -g Enables the adaptive modulation selection (gear-shifting). Experimental.\n");
printf(" -g Enables the adaptive modulation selection (gear-shifting). Not working yet!.\n");
printf(" -l Lists all modulator/coding modes.\n");
printf(" -z Lists all available sound cards.\n");
printf(" -h Prints this help.\n");
Expand Down

0 comments on commit 213c874

Please sign in to comment.