Open sa5bke opened 8 years ago
Ok, after actually reading the code I understand that it´s -h to print help and the errors I get is because uhd is set to be default hardware that I don´t have. I think this issue can be closed. Maybe you can add below to the README.md
Usage: ham2mon.py [options]
Options:
-h, --help show this help message and exit
-a HW_ARGS, --args=HW_ARGS
Hardware args
-n NUM_DEMOD, --demod=NUM_DEMOD
Number of demodulators
-d TYPE_DEMOD, --demodulator=TYPE_DEMOD
Type of demodulator (0=NBFM, 1=AM)
-f CENTER_FREQ, --freq=CENTER_FREQ
Hardware RF center frequency in Hz
-r ASK_SAMP_RATE, --rate=ASK_SAMP_RATE
Hardware ask sample rate in sps (1E6 minimum)
-g GAIN_DB, --gain=GAIN_DB
Hardware RF gain in dB
-s SQUELCH_DB, --squelch=SQUELCH_DB
Squelch in dB
-v VOLUME_DB, --volume=VOLUME_DB
Volume in dB
-t THRESHOLD_DB, --threshold=THRESHOLD_DB
Threshold in dB
-w, --write Record (write) channels to disk
-l LOCKOUT_FILE_NAME, --lockout=LOCKOUT_FILE_NAME
File of EOL delimited lockout channels in Hz
-p PRIORITY_FILE_NAME, --priority=PRIORITY_FILE_NAME
File of EOL delimited priority channels in Hz
-c FREQ_CORRECTION, --correction=FREQ_CORRECTION
Frequency correction in ppm
-m, --mute-audio Mute audio from speaker (still allows recording)
-b AUDIO_BPS, --bps=AUDIO_BPS
Audio bit depth (bps)
Isn´t the intended behavior to print the possible arguments / help when starting ham2mon.py without arguments?
I get this:
I use a HackRF and after figuring out what arguments I should use everything works fine. I use GNU Radio version 3.7.9 and Python is 2.7.11+.
I might come up with some code changes to fix this it is is the intended behavior and the issue can be confirmed from more users.