Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help creating a working chain... #18

Closed
michelinok opened this issue Oct 9, 2016 · 5 comments
Closed

Help creating a working chain... #18

michelinok opened this issue Oct 9, 2016 · 5 comments

Comments

@michelinok
Copy link

Hi!
I'm fighting with my receiver and csd for months...and cannot find a valid "chain" of commands to decode some audio...
My receiver outputs samples at a samplerate of 192khz 24 bit integer...
What i would like to do is: tune the receiver to a central frequency (for example 7070000) and decode an lsb audio signal at 7073000 (so +3 khz from the tuned freq) with a bandwidth of 2.7khz (standard ham audio bandwidth).
The output of the soundcard is 44.100 (i'm using a raspberry 3 with the classic 3.5mm jack).
The receiver outputs samples in this way:
elad_sdr_24 7070000 0 | csdr... (where frequency is 7070000 and 0 means infinite samples).

Can someone provide me the command to use?

Many thanks!

'73 de IU5HES


http://www.iu5hes.it

@ha7ilm
Copy link
Owner

ha7ilm commented Oct 9, 2016

I can't try it, anyway I guess that:

elad_sdr_24 7070000 0 | csdr convert_s24_f | csdr shift_addition_cc $(python -c "print (7073000-7070000.)/192000") |  csdr fir_decimate_cc 4 0.05 HAMMING | csdr bandpass_fir_fft_cc -0.1 0 0.05 | csdr realpart_cf | csdr agc_ff | csdr limit_ff | csdr convert_f_s16 | mplayer -cache 1024 -quiet -rawaudio samplesize=2:channels=1:rate=48000 -demuxer rawaudio -

@ha7ilm
Copy link
Owner

ha7ilm commented Oct 9, 2016

There might as well be an endianness problem, which can be fixed with csdr convert_s24_f --bigendian.

@michelinok
Copy link
Author

I'll try asap and let you know.
Please, can you explain where is the audio bandwidth calculated? (I mean
the 2.3 or 2.7 khz... cannot remember the ham standard)

Http://www.iu5hes.it

Il 09 ott 2016 20:42, "András Retzler" notifications@github.com ha
scritto:

I can't try it, anyway I guess that:

elad_sdr_24 7070000 0 | csdr convert_s24_f | csdr shift_addition_cc
$(python -c "print (7073000-7070000.)/192000") | csdr fir_decimate_cc
4 0.05 HAMMING | csdr bandpass_fir_fft_cc -0.1 0 0.05 | csdr
realpart_cf | csdr agc_ff | csdr limit_ff | csdr convert_f_s16 |
mplayer -cache 1024 -quiet -rawaudio
samplesize=2:channels=1:rate=48000 -demuxer rawaudio -


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#18 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABrFIY9nL-iis5ouDfsqtxgGPm3YGcCSks5qyTWCgaJpZM4KR_jk
.

@ha7ilm
Copy link
Owner

ha7ilm commented Oct 9, 2016

csdr bandpass_fir_fft_cc -0.1 0 0.05

...will have around 4.8 kHz.

csdr bandpass_fir_fft_cc -0.05625 0 0.002 

...will have 2.7 kHz, with a transition BW of 96 Hz.

@ha7ilm
Copy link
Owner

ha7ilm commented Apr 2, 2017

I hope it is solved by now.

@ha7ilm ha7ilm closed this as completed Apr 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants