1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-25 04:03:30 -05:00
sdrangel/plugins/samplesource/filesource
2018-10-14 02:25:51 +02:00
..
CMakeLists.txt Fixes for Arch. Manual merge of pull request #183. DATV demod: fixed some of ffmpeg deprecation warnings 2018-06-13 00:20:51 +02:00
filesource.pro Windows build: new location for export header 2018-03-10 20:32:46 +01:00
filesourcegui.cpp File Input: fixed segfault when thread is not (yet) allocated 2018-10-14 02:25:10 +02:00
filesourcegui.h File Input: fixed segfault when thread is not (yet) allocated 2018-10-14 02:25:10 +02:00
filesourcegui.ui File Input: acceleration and loop handling phase 1 2018-10-14 01:16:39 +02:00
filesourceinput.cpp File Input: dos2unix conversion 2018-10-14 02:25:51 +02:00
filesourceinput.h File Input: loop handling phase 2 2018-10-14 01:52:40 +02:00
filesourceplugin.cpp File Input: fixed wrong times display on file seek when sample count exceeds int limit (use of int64 and uint64) 2018-10-12 17:05:03 +02:00
filesourceplugin.h Removed direct reference to the DeviceSourceAPI in the source GUIs 2017-10-30 00:45:23 +01:00
filesourcesettings.cpp File Input: acceleration and loop handling phase 1 2018-10-14 01:16:39 +02:00
filesourcesettings.h File Input: acceleration and loop handling phase 1 2018-10-14 01:16:39 +02:00
filesourcethread.cpp File Input: acceleration and loop handling phase 1 2018-10-14 01:16:39 +02:00
filesourcethread.h File Input: acceleration and loop handling phase 1 2018-10-14 01:16:39 +02:00
readme.md File source: added documentation. Bumped version 2018-10-09 23:15:59 +02:00

File source input plugin

Introduction

This plugin reads a file of I/Q samples that have been previously saved with the file record button of other sampling source devices. The file starts with a 32 byte header of all unsigned integer of various sizes containing meta data:

Displ. Bytes Description
0 4 Sample rate in S/s
4 8 Center frequency in Hz
12 8 Unix epoch (timestamp) of start
20 4 Sample size (16 or 24 bits)
24 4 Filler with zeroes
28 4 CRC32 of the previous 28 bytes

The header takes an integer number of 16 (4 bytes) or 24 (8 bytes) bits samples. To calculate CRC it is assumed that bytes are in little endian order.

Interface

FileSource input plugin GUI

1: Start/Stop

Device start / stop button.

  • Blue triangle icon: ready to be started
  • Green square icon: currently running and can be stopped
  • Magenta (or pink) square icon: an error occurred. The file may not be found or this can be a header CRC error or the file is too small (less than the header length). You may stop and choose another file.

2: Stream sample rate

Baseband I/Q sample rate in kS/s. This is the sample rate present in the header.

3: Frequency

This is the center frequency of reception in kHz when the record was taken and written in the header.

4: Open file

Opens a file dialog to select the input file. It expects a default extension of .sdriq. This button is disabled when the stream is running. You need to pause (button 11) to make it active and thus be able to select another file.

5: File path

Absolute path of the file being read

6: File recorded sample rate

Sample rate of the record in kS/s as written in the header. The reading process is based on this sample rate.

7: Sample size

This is the sample size in bits as written in the header. The reading process is based on this sample size.

8: CRC indicator

Indicates if the header block CRC check has succeeded (green) or failed (red) or undetermined yet (grey). If the header is corrupted you may try to reconstruct a valid header using the rescuesdriq utility in the folder with the same name. See the readme for details.

9: Current timestamp

This is the timestamp of the current pointer in the file based on the start time, number of samples read and sample rate.

10: Loop

Use this button to read in a loop or read only once

11: Play/pause

This is the play/pause button

12: Relative timestamp and record length

Left is the relative timestamp of the current pointer from the start of the record. Right is the total record time.

13: Current pointer gauge

This represents the position of the current pointer position in the complete recording. It can be used it paused mode to position the current pointer by moving the slider.