| 1370 | |
| 1371 | |
| 1372 | static void usage(FILE *fout) |
| 1373 | { |
| 1374 | fprintf(fout, "Usage: rigctltcp [OPTION]...\n" |
| 1375 | "Daemon serving COMMANDs to a connected radio transceiver or receiver.\n\n"); |
| 1376 | |
| 1377 | fprintf(fout, |
| 1378 | " -m, --model=ID select radio model number. See model list (-l)\n" |
| 1379 | " -r, --rig-file=DEVICE set device of the radio to operate on\n" |
| 1380 | " -p, --ptt-file=DEVICE set device of the PTT device to operate on\n" |
| 1381 | " -d, --dcd-file=DEVICE set device of the DCD device to operate on\n" |
| 1382 | " -P, --ptt-type=TYPE set type of the PTT device to operate on\n" |
| 1383 | " -D, --dcd-type=TYPE set type of the DCD device to operate on\n" |
| 1384 | " -s, --serial-speed=BAUD set serial speed of the serial port\n" |
| 1385 | " -c, --civaddr=ID set CI-V address, decimal (for Icom rigs only)\n" |
| 1386 | " -S, --separator=CHAR set char as rigctld response separator, default is \\n\n" |
| 1387 | " -L, --show-conf list all config parameters\n" |
| 1388 | " -C, --set-conf=PARM=VAL[,...] set config parameters\n" |
| 1389 | " -l, --list list all model numbers and exit\n" |
| 1390 | " -u, --dump-caps dump capabilities and exit\n" |
| 1391 | " -o, --vfo do not default to VFO_CURR, require extra vfo arg\n" |
| 1392 | " -v, --verbose set verbose mode, cumulative (-v to -vvvvv)\n" |
| 1393 | " -T, --listen-addr=IPADDR set listening IP address, default ANY\n" |
| 1394 | " -t, --port=NUM set TCP listening port, default %s\n" |
| 1395 | " -M, --multicast-addr=ADDR set multicast UDP address, default %s (off), recommend 224.0.1.1\n" |
| 1396 | " -n, --multicast-port=PORT set multicast UDP port, default %d\n" |
| 1397 | " -W, --twiddle_timeout=SECONDS timeout after detecting vfo manual change\n" |
| 1398 | " -w, --twiddle_rit=SECONDS suppress VFOB getfreq so RIT can be twiddled\n" |
| 1399 | " -x, --uplink=OPTION set uplink get_freq ignore, option 1=Sub, 2=Main\n" |
| 1400 | " -Z, --debug-time-stamps enable time stamps for debug messages\n" |
| 1401 | #if RIGCTLD_PASSWORDS |
| 1402 | " -A, --password=PASSWORD set password for rigctld access (64 chars max), default none\n" |
| 1403 | #endif |
| 1404 | " -R, --rigctltcp-idle make rigctltcp close the rig when no clients are connected\n" |
| 1405 | " -h, --help display this help and exit\n" |
| 1406 | " -V, --version output version information and exit\n\n", |
| 1407 | portno, |
| 1408 | multicast_addr, |
| 1409 | multicast_port); |
| 1410 | |
| 1411 | usage_rig(fout); |
| 1412 | } |