1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-25 20:22:10 -05:00
sdrangel/plugins/samplesink/remoteoutput
Daniele Forsi 902012641d Fix typing errors in readme's
Fixed with:
find . -name '*.md' -exec codespell --ignore-words-list=doas,ehr,lits,verry --write-changes --summary {} \+
2022-05-15 12:39:57 +02:00
..
CMakeLists.txt Install debug symbols on Windows for debug builds 2022-02-06 12:56:58 +00:00
readme.md Fix typing errors in readme's 2022-05-15 12:39:57 +02:00
remoteoutput.cpp Fixed some signal/slot connects. Removed unnecessary m_channelMessageQueue in ChannelAPI. Fixes #1185 2022-03-23 22:32:23 +01:00
remoteoutput.h Remote Output: improve report API 2021-12-15 22:56:18 +01:00
remoteoutputfifo.cpp Remote Output and Remote Source more fixes 2021-12-14 07:57:43 +01:00
remoteoutputfifo.h Remote Output and Remote Source more fixes 2021-12-14 07:57:43 +01:00
remoteoutputgui.cpp v7: API: added workspace handling for device, spectrum, feature and channel. Implements #1242 2022-05-13 22:24:48 +02:00
remoteoutputgui.h v7: API: added workspace handling for device, spectrum, feature and channel. Implements #1242 2022-05-13 22:24:48 +02:00
remoteoutputgui.ui Massive UI revamping (v7): fixed devices .ui files to correct display wwhen creating device. Part of #1209 2022-04-27 02:06:17 +02:00
remoteoutputplugin.cpp Updated main and plugin versions 2022-05-14 13:16:33 +02:00
remoteoutputplugin.h Avoid global QString init in plugins 2020-11-22 04:06:32 +01:00
remoteoutputsender.cpp Remote Output and Remote Source more fixes 2021-12-14 07:57:43 +01:00
remoteoutputsender.h Remote Output and Remote Source more fixes 2021-12-14 07:57:43 +01:00
remoteoutputsettings.cpp Massive UI revamping (v7): fixed device workspace index save/restore and removed useless geometry blobs. Fixes #1207 2022-04-20 20:08:41 +02:00
remoteoutputsettings.h Massive UI revamping (v7): fixed device workspace index save/restore and removed useless geometry blobs. Fixes #1207 2022-04-20 20:08:41 +02:00
remoteoutputwebapiadapter.cpp Fixed wrong structure being used in some sample source and sink plugins web API adapters. Fixes #842 2021-04-15 15:30:29 +02:00
remoteoutputwebapiadapter.h REST API: config: GET (11). Support of the rest of devices 2019-08-04 20:24:44 +02:00
remoteoutputworker.cpp Remote output/source: implemented choice of sample size in transmission. Fixes in the size conversion routines 2021-12-19 11:30:48 +01:00
remoteoutputworker.h Remote plugins: added new meta data for #1074 2021-12-23 16:27:19 +01:00
udpsinkfec.cpp Remote input/sink implemented remote control (1) 2021-12-24 21:06:15 +01:00
udpsinkfec.h Remote plugins: added new meta data for #1074 2021-12-23 16:27:19 +01:00
UDPSocket.cpp Fixed incomplete copyright headers (1) 2019-04-11 06:39:30 +02:00
UDPSocket.h Fix some typos 2019-07-22 23:14:23 +02:00

Remote output plugin

Introduction

This output sample sink plugin sends its samples over the network to a SDRangel instance's Remote source channel using UDP connection.

Forward Error Correction with a Cauchy MDS block erasure codec is used to prevent block loss. This can make the UDP transmission more robust particularly over WiFi links.

The remote SDRangel instance to which the data stream is sent is controlled via its REST API using a separate control software for example SDRangelcli

The sample size used in the I/Q stream is the Rx sample size of the local instance. Possible conversion takes place in the remote Remote source channel plugin to match the Rx sample size of the remote instance. Best performance is obtained when both instances use the same sample size.

Build

The plugin will be built only if the CM256cc library is installed in your system. For CM256cc library you will have to specify the include and library paths on the cmake command line. Say if you install cm256cc in /opt/install/cm256cc you will have to add -DCM256CC_DIR=/opt/install/cm256cc to the cmake commands.

Interface

The top and bottom bars of the device window are described here

SDR Remote output plugin GUI

1: Start/Stop

Device start / stop button.

  • Blue triangle icon: device is ready and can be started
  • Green square icon: device is running and can be stopped

2: Baseband sample rate

I/Q sample rate in kS/s of the baseband sample rate.

3: Frequency

This is the center frequency in kHz of the remote instance device.

4: Remote baseband sample rate

This is the remote instance baseband sample rate. It is normally equal to the system sample rate (2).

5: remote instance device set index

This is the device set index in the remote instance to which the stream is connected to. Use this value to properly address the API to get status.

6: remote instance channel index

This is the channel index of the Remote source in the remote instance to which the stream is connected to. Use this value to properly address the API to get status.

6a: transmission sample size

This is the size in bytes of a transmitted I or Q sample. The choice is between 1, 2 and 4 bytes. Conversion takes place if the size is different from the built-in sample size.

7: Forward Error Correction setting and status

SDR Remote output FEC GUI

7.1: Desired number of FEC blocks per frame

This sets the number of FEC blocks per frame. A frame consists of 128 data blocks (1 meta data block followed by 127 I/Q data blocks) and a variable number of FEC blocks used to protect the UDP transmission with a Cauchy MDS block erasure correction. The two numbers next are the total number of blocks and the number of FEC blocks separated by a slash (/).

7.2: Stream status

The color of the icon indicates stream status:

  • Green: all original blocks have been received for all frames during the last polling timeframe (ex: 134)
  • No color: some original blocks were reconstructed from FEC blocks for some frames during the last polling timeframe (ex: between 128 and 133)
  • Red: some original blocks were definitely lost for some frames during the last polling timeframe (ex: less than 128)
  • Blue: stream is idle

7.3: Remote stream rate

This is the remote stream rate calculated from the samples counter between two consecutive API polls. It is normal for it to oscillate moderately around the nominal stream rate (2).

7.4: Reset events counters

This push button can be used to reset the events counters (7.6 and 7.7) and reset the event counts timer (6.8)

7.5: Unrecoverable error events counter

This counter counts the unrecoverable error conditions found (i.e. 7.4 lower than 128) since the last counters reset.

7.6: Recoverable error events counter

This counter counts the unrecoverable error conditions found (i.e. 7.4 between 128 and 128 plus the number of FEC blocks) since the last counters reset.

7.7: events counters timer

This HH:mm:ss time display shows the time since the reset events counters button (4.6) was pushed.

8: Remote transmitter queue length gauge

This is ratio of the reported number of data frame blocks in the remote queue over the total number of blocks in the queue.

9: Remote transmitter queue length status

This is the detail of the ratio shown in the gauge. Each frame block is a block of 127 ✕ 126 samples (16 bit I or Q samples) or 127 ✕ 63 samples (24 bit I or Q samples).

10: Remote server information

Press button to get remote instance information that will be displayed in (16). The button stays green as long as the connection with the remote is established.

11: API IP address and port

IP address and port of the remote SDRangel instance REST API

12: Set API address

When the return key is hit within the address or port (11) the changes are effective immediately. You can also use this button to set again these values.

13: Remote data address and port

Address and port of the remote endpoint where UDP data blocks are sent.

14: Set remote data IP and port

When the return key is hit within the address or port (13) the changes are effective immediately. You can also use this button to set again these values.

15: Status message

The API status is displayed in this box. It shows "API OK" when the connection is successful and reply is OK

16: Remote information

This is the information returned by the remote when remote button is pressed (10)