1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00
sdrangel/plugins/channelrx/remotetcpsink
2024-10-09 08:49:23 +01:00
..
CMakeLists.txt RemoteTCPSink: Report server init errors via GUI. Send protocol to public list. 2024-10-08 17:20:18 +01:00
readme.md Update docs. 2024-10-08 19:05:18 +01:00
remotetcpprotocol.h Remote TCP updates: 2024-09-22 10:44:30 +01:00
remotetcpsink.cpp Lint fixes 2024-10-08 22:19:29 +01:00
remotetcpsink.h Lint fixes 2024-10-08 22:19:29 +01:00
remotetcpsinkbaseband.cpp Lint fixes 2024-10-08 22:19:29 +01:00
remotetcpsinkbaseband.h Remote TCP updates: 2024-09-22 10:44:30 +01:00
remotetcpsinkgui.cpp Lint fixes 2024-10-08 22:19:29 +01:00
remotetcpsinkgui.h Remote TCP updates: 2024-09-22 10:44:30 +01:00
remotetcpsinkgui.ui RemoteTCPSink: Report server init errors via GUI. Send protocol to public list. 2024-10-08 17:20:18 +01:00
remotetcpsinkplugin.cpp Updated plugin versions 2024-10-06 10:53:38 +02:00
remotetcpsinkplugin.h Rewriting of copyright notices for plugins/channelrx. Part of #1893 2023-11-18 12:02:48 +01:00
remotetcpsinksettings.cpp Remote TCP updates: 2024-09-22 10:44:30 +01:00
remotetcpsinksettings.h Remote TCP updates: 2024-09-22 10:44:30 +01:00
remotetcpsinksettingsdialog.cpp Fix gcc warning 2024-09-22 15:22:07 +01:00
remotetcpsinksettingsdialog.h Fix lint warnings 2024-10-08 20:55:31 +01:00
remotetcpsinksettingsdialog.ui Remote TCP updates: 2024-09-22 10:44:30 +01:00
remotetcpsinksink.cpp Lint fixes 2024-10-09 08:49:23 +01:00
remotetcpsinksink.h RemoteTCPSink: Report server init errors via GUI. Send protocol to public list. 2024-10-08 17:20:18 +01:00
remotetcpsinkwebapiadapter.cpp Rewriting of copyright notices for plugins/channelrx. Part of #1893 2023-11-18 12:02:48 +01:00
remotetcpsinkwebapiadapter.h Rewriting of copyright notices for plugins/channelrx. Part of #1893 2023-11-18 12:02:48 +01:00

Remote TCP Sink Channel Plugin

Introduction

The Remote TCP Sink Channel plugin sends I/Q samples from the baseband via TCP/IP or a Secure WebSocket across a network to a client application. The client application could be SDRangel using the Remote TCP Input plugin or an rtl_tcp compatible application. This means that applications using rtl_tcp protocol can connect to the wide variety of SDRs supported by SDRangel.

While the plugin supports rtl_tcp's RTL0 protocol for compatibility with older applications, the newer SDRA protocol supports the following additional features:

  • Different bit depths (8, 16, 24 or 32),
  • Additional settings, such as decimation, frequency offset and channel gain,
  • Device settings can be sent to the client for display,
  • IQ compression, using FLAC or zlib, to reduce network bandwidth,
  • IQ squelch, to reduce network bandwidth when no signal is being received,
  • Real-time forwarding of device/antenna position and direction to client,
  • Text messaging between clients and server,
  • Use of either TCP or WSS (WebSocket Secure Protocol).

The Remote TCP Sink can support multiple clients connected simultaneously, with a user-defined maximum client limit. Clients can also have a time limit applied.

Connection details can optionally be sent to a public database at https://sdrangel.org to allow operation as a WebSDR. Public servers are viewable on the Map Feature.

Interface

Remote TCP sink channel plugin GUI

1: Frequency shift from center frequency of reception

This is the shift of the channel center frequency from the device center frequency. This is used to select the desired part of the signal when the channel sample rate is lower than the baseband sample rate.

2: Gain

Sets a gain figure in dB that is applied to I/Q samples before transmission via TCP/IP. This option may be useful for amplifying very small signals from SDRs with high-dynamic range (E.g. 24-bits), when the network sample bit-depth is 8-bits.

3: Channel power

Average total power in dB relative to a +/- 1.0 amplitude signal received in the pass band.

4: Level meter in dB

  • top bar (green): average value
  • bottom bar (blue green): instantaneous peak value
  • tip vertical bar (bright green): peak hold value

5: IQ Squelch

Check to enable IQ squelch. When IQ squelch is enabled, if the channel power falls below the specified power level (6), the plugin will squelch (suppress) all the signal and noise in the channel, so that it can be transmitted at a very high compression ratio, reducing network bandwidth.

This option is particularly suitable for packetised data, where the client doesn't need to receive the noise between packets.

6: IQ Squelch power level

Sets the power level in dB, below which, IQ data will be squelched.

7: IQ Squelch gate time

Sets the IQ squelch gate time. The units can be us (microseconds), ms (milliseconds) or s (seconds).

8: IQ Squelch indicator

When IQ squelch is enabled, the icon will have a green background when a signal above the power level (6) is being transmitted and a grey background when the signal is squelched.

9: Sample rate

Specifies the channel and network sample rate in samples per second. If this is different from the baseband sample rate, the baseband signal will be decimated to the specified rate.

10: Sample bit depth

Specifies number of bits per I/Q sample transmitted via TCP/IP.

11: IP address

IP address of the local network interface on which the server will listen for TCP/IP connections from network clients. Use 0.0.0.0 for any interface.

12: Port

TCP port on which the server will listen for connections.

13: Protocol

Specifies the protocol used for sending IQ samples and metadata to clients:

  • RTL0: Compatible with rtl_tcp - limited to 8-bit IQ data.
  • SDRangel: Enhanced version of protocol via TCP Socket.
  • SDRangel wss: SDRangel protocol via a WebSocket Secure instead of a TCP Socket. You should use this if you wish to allow connections from the WebAssembly version of SDRangel.

14: Display Settings

Click to open the Settings Dialog.

Remote TCP sink Settings Dialog

Max Clients

Specify the maximum number of clients than can connect simultaneously. If additional clients attempt to connect, they will be held in a queue.

Time Limit

Specify a time limit in minutes for each client connection. Use 0 for no limit. After the time limit expires, a client will be disconnected. They will be allowed to reconnect if the maximum number of clients is not reached.

Max Channel Sample Rate

Specify the maximum channel sample rate that can be set. This allows a limit to be set on network bandwidth.

IQ only

When checked, only uncompressed IQ samples will be transmitted. This is for compatibilty with client software expecting the RTL0 protcol. Checking this option will disable support for compression, messaging, device location and direction.

Compressor

Specify the compressor to use. This can be FLAC or zlib.

Compression Level

Specifies the compression effort level. Higher settings can improve compression, but require more CPU time.

Block size

Specify the block size the compressor uses. Larger block sizes improve compression, but add latency. Generally it should be fine to use the largest setting, unless the sample rate is very low.

SSL Certificate

Specify an SSL certificate .pem file. This is required to use SDRangel wss protocol. This file can be generated in the same way as for a web server.

SSL Key

Specify an SSL key .pem file. This is required to use SDRangel wss protocol. This file can be generated in the same way as for a web server.

List Server

Check to list the server in a public directory on https://sdrangel.com. This will allow other users to find and connect to the server via the Map Feature.

Address

Public IP address or hostname and port number to access the server. The port number specified here may differ from (12) if your router's port forwarding maps the port numbers.

Frequency Range

Specify minimum and maximum frequencies that users can expect to receive on. This will typically depend on the SDR and antenna. For information only and will be displayed on the Map.

Antenna

Optionally enter details of the antenna. For information only and will be displayed on the Map.

Location

Optionaly enter the location (Town and Country) of the antenna. For information only and will be displayed on the Map. The position the SDRangel icon will be plotted on the Map will be taken from the device itself, which for most devices, will default to the position in Preferences > My Position.

Isotropic

Check to indicate the antenna is isotropic (non-directional). When unchecked, the direction the antenna points in can be specified below.

Rotator

Specify a Rotator feature that is controlling the direction of the antenna. Set to None to manually set the direction the antenna points.

Direction

Specify the direction the antenna is pointing, as Azimuth in degrees and Elevation in degrees.

IP Blacklist

Specify a list of IP addresses that will be prevented from connecting to the server.

15: Remote Control

When checked, remote clients will be able to change device settings. When unchecked, client requests to change settings will be ignored.

16: TX

When pressed, the text message (18) will be transmitted to the clients specified by (17).

17: TX Address

Specifies the TCP/IP address and port of the client that the message should be transmitted to, or ALL, if it should be transmitted to all clients.

18: TX Message

Specifies a text message to transmit to clients, when the TX button (16) is pressed.

19: RX Messages

Displays text messages received from clients.

20: Connection Log

Displays the IP addresses and TCP port numbers of clients that have connected, along with when they connected and disconnected and how long they were connected for.