The Wayback Machine - https://web.archive.org/web/20201207235804/https://github.com/niclashoyer/rtltcp
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

A rust implementation of rtl-tcp with better buffering and support for systemd socket activation.

Using Systemd Socket Activation on the Raspberry Pi

By using systemd socket activation it is possible to start rtltcp just if there is a connection. This keeps the rtl-sdr stick cool while not in use without any effort on the server side.

To use socket activation, place a file rtltcp.service and a file rtltcp.socket in /etc/systemd/system/.

rtltcp.service:

[Unit]
Description=RTL TCP Service
After=network.target
Requires=rtltcp.socket

[Service]
Type=notify
User=pi
ExecStart=/usr/local/bin/rtltcp
TimeoutStopSec=5

rtltcp.socket:

[Unit]
Description=RTL TCP Socket
PartOf=rtltcp.service

[Socket]
ListenStream=[::]:1234

[Install]
WantedBy=sockets.target

Download the latest release of rtltcp for the Raspberry Pi and place it in /usr/local/bin:

wget https://github.com/niclashoyer/rtltcp/releases/download/0.1.0/rtltcp-raspbian-armv7 -O /usr/local/bin/rtltcp
chmod +x /usr/local/bin/rtltcp

Now enable and start the socket:

systemctl enable rtltcp.socket
systemctl start rtltcp.socket

The Raspberry Pi should now be listening on port 1234 and start/stop rtltcp automatically.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

A rust implementation of rtl-tcp with better buffering and support for systemd socket activation.

Topics

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.