1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-16 13:21:50 -05:00
sdrangel/plugins/samplesink/filesink
2017-03-09 19:07:07 +01:00
..
CMakeLists.txt Device plugins: Removed useless link dependency on QT OpenGL and Multimedia 2016-10-27 08:38:50 +02:00
filesink.pro Windows build: set SSE options for all sink device plugins 2016-11-07 18:44:23 +01:00
filesinkgui.cpp File Sink: added more sample rates 2017-03-09 19:07:07 +01:00
filesinkgui.h File Sink: added more sample rates 2017-03-09 19:07:07 +01:00
filesinkgui.ui Tx supoort: removed file record option. Unify play button status colors 2017-01-04 21:11:51 +01:00
filesinkoutput.cpp Tx support: implemented final interpolation stage in FileSink plugin 2017-01-02 03:14:46 +01:00
filesinkoutput.h Tx ph.1: Fixed sample rate and center frequency handling in File Sink 2016-10-23 10:38:44 +02:00
filesinkplugin.cpp Tx support: interim state (1) 2016-12-29 12:41:10 +01:00
filesinkplugin.h Tx support: BladeRF output plugin: compiles 2017-01-02 10:39:21 +01:00
filesinksettings.cpp Tx support: implemented final interpolation stage in FileSink plugin 2017-01-02 03:14:46 +01:00
filesinksettings.h Tx support: implemented final interpolation stage in FileSink plugin 2017-01-02 03:14:46 +01:00
filesinkthread.cpp FileSink plugin: fixed possible segfault 2017-01-03 23:22:06 +01:00
filesinkthread.h Tx support: implemented final interpolation stage in FileSink plugin 2017-01-02 03:14:46 +01:00
readme.md Added documentation on BladeRF input and output plugins and File Sink plugin 2017-01-04 23:14:28 +01:00

File sink plugin

Introduction

This output sample sink plugin sends its samples to file in the SDRangel .sdriq format.

The format is S16LE I/Q samples. Thus there are 4 bytes per sample. I and Q values are 16 bit signed integers. The file starts with a context header containing information about center frequency, sample rate and timestamp of the start of the recording. This header has a length which is a multiple of a sample size (normally 24 bytes thus 6 samples). Thus this file can be used as a raw I/Q file with S16LE samples tolerating a glitch at the start corresponding to the 6 "random" samples. For example in GNURadio you can simply specify your file source format as short complex.

You can also zap the 24 bytes header with this Linux command: tail -c +25 myfile.sdriq > myfile.raw

To convert in another format you may use the sox utility. For example to convert to 32 bit (float) complex samples do: sox -r 48k b 16 e signed-integer -c 2 myfile.raw -e float -c 2 myfilec.raw

Note that you have to specify the sampling rate and use .raw for the file extensions.

Build

The plugin is always built.

Interface

File sink plugin GUI

1: Start/Stop

Device start / stop button.

  • Blue triangle icon: device is ready and can be started
  • Red square icon: device is running and can be stopped
  • Magenta (or pink) square icon: an error occured

2: File stream sample rate

This is the file stream sample rate in kS/s after interpolation (4) from the baseband stream. Thus this is the sample rate (7) multiplied by the interpolation factor (6).

3: Frequency

This is the center frequency in kHz that will be put in the file header.

4: Output file selection

Use this file dialog to specify the output file.

5: File name

This is the file path of the output file.

6: Interpolation factor

The baseband stream is interpolated by this value before being written to file. It can vary in powers of two from 1 (no interpolation) to 64.

7: Baseband sample rate

This is the baseband sample rate before interpolation in kS/s. Possible values are: 32, 48, 64, 72, 128, 192, 256, 288, 300, 384, 512, 1000 kS/s.

8: Time counter

This is the recording time count in HH:MM:SS.SSS