th0ma5w / rtl_fm_python

An API and web application to interact with a running instance of RTL_FM
GNU General Public License v2.0
135 stars 29 forks source link

Does wbfm have to be set first for usb to be run? #9

Open JordanStimely opened 5 years ago

JordanStimely commented 5 years ago

I know this is a known issue. But I am having trouble with it. If I run: /rtl_fm_python_web.py -M usb -f 434.562M | aplay -r 32000 -f S16_LE -t raw -c 1 The my carrier (minimodem) doesn't pick up until i manually cycle autogain on and off on the local website. This would be fine If I knew where to plug the python functions into but I don't so I need a way to either set "USB" modulation from the beginning or change it just after the program has started.

th0ma5w commented 5 years ago

Hrmm this is very curious. If you substitute rtl_fm in place of my stuff how does it behave? Does it then work as intended?

JordanStimely commented 5 years ago

I haven't had much luck with rlt_fm as a whole. Maybe the issue is stemming from there? I wondered if there was a way that I could write a quick few lines to cycle the autogain however the autogain command isn't present on the github read me and I wouldn't know where to plug it in since;

rtl_fm_python_web.py seems to handle the web commands. rtl_fm_python_thread.py seems to be a built in command line (maybe this is what I need) rtl_fm_python_common.py looks like the raw functions of the web app are defined.

Overall, I'm pretty stumped. Mainly because I lack the experience to effectively strip down other people's code. I wondered if you could help me getting this up and running?

JordanStimely commented 5 years ago

As for my rtl_fm issue I changed the sampling input and output to match my old SDR choice. Then i set the gain to automatic and voila! SDR + decoder working just fine! I'm guessing my problems were because of rtl_fm not your python fork. Therefore this is no longer an rtl_fm_python issue so you can go ahead and close.

ps. for anyone stumbling across this post. Here is the code I used to decode 434 MHz rtl_fm -M usb -f 434.562M -s 24000 -r 12000 - | aplay -r 12000 -f S16_LE -t raw -c 1 | minimodem -r 300 -8 -a --stopbits 2.0 --print-filter -b 300 I will make use of the rtl_fm_python package at a later date :)