Re: [Discuss-gnuradio] Waveform after AM demodulation looks weird

2014-04-28 Thread Activecat
When I looked into the attached graphical flowgraph in the first email, the signal was multiplied by zero (constant multiplier) before feeding into file sink and audio sink. In this case what you get was probably amplified noise. Was it zero or something else? On Fri, Apr 25, 2014 at 11:54 PM,

Re: [Discuss-gnuradio] Waveform after AM demodulation looks weird

2014-04-28 Thread Anton Komarov
This, is a squelch, variable changes between 0 and positive gain value. -- public PGP key http://pastebin.com/dqZqgyVE On Mon, Apr 28, 2014 at 1:24 PM, Activecat active...@gmail.com wrote: When I looked into the attached graphical flowgraph in the first email, the signal was multiplied by

Re: [Discuss-gnuradio] Waveform after AM demodulation looks weird

2014-04-25 Thread Michael Ossmann
On Fri, Apr 25, 2014 at 04:14:30PM +0400, Anton Komarov wrote: Hi, you can find in attach AM demodulator grc file. Everything is straight forward with demod but audio file generated looks weird. Only positive values of amplitude. The particular definition of amplitude adopted by GNU Radio

Re: [Discuss-gnuradio] Waveform after AM demodulation looks weird

2014-04-25 Thread Anton Komarov
But when we have only positive values that means in fact we have 0.5 DC offset, and that is bad. Moreover i've made test recording with GQRX - waveform is fine! Looking into the code, nothing special, am demod-low-pass-wav-sink. -- public PGP key http://pastebin.com/dqZqgyVE On Fri, Apr 25,

Re: [Discuss-gnuradio] Waveform after AM demodulation looks weird

2014-04-25 Thread Michael Ossmann
On Fri, Apr 25, 2014 at 05:25:54PM +0400, Anton Komarov wrote: But when we have only positive values that means in fact we have 0.5 DC offset, and that is bad. Moreover i've made test recording with GQRX - waveform is fine! Looking into the code, nothing special, am demod-low-pass-wav-sink.

Re: [Discuss-gnuradio] Waveform after AM demodulation looks weird

2014-04-25 Thread Anton Komarov
Thanks a lot. It does work! -- public PGP key http://pastebin.com/dqZqgyVE On Fri, Apr 25, 2014 at 5:41 PM, Michael Ossmann m...@ossmann.com wrote: On Fri, Apr 25, 2014 at 05:25:54PM +0400, Anton Komarov wrote: But when we have only positive values that means in fact we have 0.5 DC

Re: [Discuss-gnuradio] Waveform after AM demodulation looks weird

2014-04-25 Thread Marcus Leech
An AM demodulator is a squaring function. It can only *ever* produce positive values. You can remove DC offset by using a high-pass filter after it. on Apr 25, 2014, Anton Komarov anton.koma...@gmail.com wrote: But when we have only positive values that means in fact we have 0.5 DC offset,

Re: [Discuss-gnuradio] Waveform after AM demodulation looks weird

2014-04-25 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Actually I'm a little confused - Is seeing an AGC in an AM demodulator something you usually do? Especially the feedforward AGC should be rather err jumpy with a scope of but 256 samples, unless I'm missing something; f_sample seems to be 1024ksps,

Re: [Discuss-gnuradio] Waveform after AM demodulation looks weird

2014-04-25 Thread Anton Komarov
Marcus, w/o AGC audio sometimes is creapy. I have tested AGC2, tried to play with attack and decay, but at last when there is a plane in the vicinity dongle overloads and sound become very loud. Then i tested FAGC and it fits well! 1024M/64 gives 16k and 256 samples equals - 62 ms of signal. Works

Re: [Discuss-gnuradio] Waveform after AM demodulation looks weird

2014-04-25 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A shoot, I overlooked the 64 decimation rate... Sorry about that. On 25.04.2014 17:36, Anton Komarov wrote: Marcus, w/o AGC audio sometimes is creapy. I have tested AGC2, tried to play with attack and decay, but at last when there is a plane in