1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-15 21:01:45 -05:00
sdrangel/plugins/samplesink/filesink
2019-12-16 01:03:47 +01:00
..
CMakeLists.txt remove useless CMAKE_CURRENT_BINARY_DIR 2019-05-21 20:19:30 +02:00
filesinkgui.cpp FileSink: changed some debug messages 2019-07-08 14:15:21 +02:00
filesinkgui.h Fixed incomplete copyright headers (1) 2019-04-11 06:39:30 +02:00
filesinkgui.ui Full renaming of FileSource device to FileInput 2019-07-08 00:59:04 +02:00
filesinkoutput.cpp Device API: added a number of source and sink streams and update it from the plugins 2019-05-21 00:27:08 +02:00
filesinkoutput.h Channel local source (1) 2019-05-10 00:34:35 +02:00
filesinkplugin.cpp Added possibility to specify devices that cannot be discovered automatically. This implements #445 2019-12-16 01:03:47 +01:00
filesinkplugin.h Plugins device enumeration optimization 2019-10-09 07:39:52 +02:00
filesinksettings.cpp Fixed incomplete copyright headers (1) 2019-04-11 06:39:30 +02:00
filesinksettings.h Fixed incomplete copyright headers (1) 2019-04-11 06:39:30 +02:00
filesinkthread.cpp SampleSourceFifo refactoring and Tx code reorganization 2019-11-15 01:05:32 +01:00
filesinkthread.h SampleSourceFifo refactoring and Tx code reorganization 2019-11-15 01:05:32 +01:00
readme.md Fix spelling errors in documentation 2018-04-21 18:45:09 -07: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 occurred

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 S/s.

Use the wheels to adjust the sample rate. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position. Wheels are moved with the mousewheel while pointing at the wheel or by selecting the wheel with the left mouse click and using the keyboard arrows. Pressing shift simultaneously moves digit by 5 and pressing control moves it by 2.

8: Time counter

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