<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GNU-Radio &#8211; Mike Richards G4WNC</title>
	<atom:link href="https://photobyte.org/category/gnu-radio/feed/" rel="self" type="application/rss+xml" />
	<link>https://photobyte.org</link>
	<description>Freelance Technical Author, Illustrator &#38; Photographer</description>
	<lastBuildDate>Wed, 25 Aug 2021 18:30:38 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>
	<item>
		<title>RTL-SDR Server as a service on Raspberry Pi</title>
		<link>https://photobyte.org/rtl-sdr-server-as-a-service-on-raspberry-pi/</link>
					<comments>https://photobyte.org/rtl-sdr-server-as-a-service-on-raspberry-pi/#comments</comments>
		
		<dc:creator><![CDATA[Mike Richards]]></dc:creator>
		<pubDate>Wed, 21 Mar 2018 00:31:51 +0000</pubDate>
				<category><![CDATA[GNU-Radio]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<guid isPermaLink="false">https://photobyte.org/?p=1696</guid>

					<description><![CDATA[Updated 25th Aug 2021 Clarified RTL-SDR build requirements NB: This post assumes that you have already built the RTL-SDR server from source using the following instructions.  Install RTL-SDR server  These instructions will not work if you install RTL-SDR via the repository, i.e. sudo apt install&#8230; Now that Raspbian has changed to Systemd for managing auto-starting [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><em><strong>Updated 25th Aug 2021 </strong></em>Clarified RTL-SDR build requirements</p>
<p><strong>NB: This post assumes that you have already built the RTL-SDR server from source using the following instructions. </strong></p>
<p><strong> <a href="https://photobyte.org/using-the-raspberry-pi-as-an-rtl-sdr-dongle-server/">Install RTL-SDR server</a> </strong></p>
<p><strong>These instructions will not work if you install RTL-SDR via the repository, i.e. sudo apt install&#8230;</strong></p>
<p>Now that Raspbian has changed to Systemd for managing auto-starting programs and daemons, I thought it was about time I moved away from using rc.local to start the rtl-sdr server.</p>
<p>If you &#8216;re currently using the rc.local file to start the server, begin by removing the server commands from that file.</p>
<p>The next job is to create a unit file to provide Systemd with the essential information for the management of the service. To create the unit file, use nano as follows.</p>
<p>Enter: <strong>sudo nano /etc/systemd/system/rtlsdr.service</strong></p>
<p>Once nano opens, populate it with the following lines:</p>
<p><strong>[Unit]</strong><br />
<strong>Description=RTL-SDR Server</strong></p>
<p><strong>Wants=network-online.target</strong><br />
<strong>After=network-online.target</strong></p>
<p><strong>[Service]</strong></p>
<p><strong>ExecStartPre=/bin/sleep 15</strong><br />
<strong>ExecStart=/bin/sh -c ‘/usr/local/bin/rtl_tcp -a $(hostname -I)’</strong><br />
<strong>WorkingDirectory=/home/pi</strong><br />
<strong>StandardOutput=inherit</strong><br />
<strong>StandardError=inherit</strong><br />
<strong>Restart=always</strong></p>
<p><strong>[Install]</strong><br />
<strong>WantedBy=multi-user.target</strong></p>
<p>When you&#8217;ve entered the lines above, press <strong>ctl x</strong> then <strong>y</strong> and <strong>Enter</strong> to save the file.</p>
<p>To test the service, make sure the RTL dongle and network are connected and enter: <strong>sudo systemctl start rtlsdr.service</strong>. If that proceeds without error, you can check the status of the service with <strong>sudo systemctl status rtlsdr.service</strong>. If all is well, you should see a message showing that the RTL-SDR dongle has been found. You can stop the service with <strong>sudo systemctl stop rtlsdr.service</strong>. If you&#8217;re happy that all is working ok, you can enable the service so it automatically starts at boot time. Enter the following: <strong>sudo systemctl enable rtlsdr. </strong>To disable the auto-start service it&#8217;s <strong>sudo systemctl disable rtlsdr.service</strong></p>
<p><strong>Time Saving Tip:</strong> When entering systemctl commands, you can omit the .service suffix.</p>
<p>You can find out more about Systemd at: <strong>https://fedoramagazine.org/what-is-an-init-system/</strong></p>
<p style="text-align: center;"><strong>ExecStart Explanation</strong></p>
<p><strong>ExecStartPre=/bin/sleep 15</strong></p>
<p>This line adds a 15 second delay between completion of the network setup and starting the Spy Server. This is included as a precaution to allow time for a slow router to allocate an IP address for the Pi. If the start-up delay is a problem for you try reducing the sleep time or eliminating this line completely.</p>
<p><strong>ExecStart=/bin/sh -c ‘/usr/local/bin/rtl_tcp -a $(hostname -I)’</strong></p>
<p>This line starts the server but warrants some explanation. One of the problems with starting the rtl-sdr server as a service is the lack of a system variable to provide the Pi IP address. We need this because we have to pass the IP address to the server when it&#8217;s started. In this solution, I&#8217;ve called sh first and used the -c option. This tells sh to get the command line instruction from the quoted string that follows. That way we can use our standard call to rtl_tcp and combine it with the command line $(hostname -I) instruction to retrieve the IP address.</p>
<p>Mike &#8211; G4WNC</p>
]]></content:encoded>
					
					<wfw:commentRss>https://photobyte.org/rtl-sdr-server-as-a-service-on-raspberry-pi/feed/</wfw:commentRss>
			<slash:comments>11</slash:comments>
		
		
			</item>
		<item>
		<title>GNU Radio</title>
		<link>https://photobyte.org/gnu-radio/</link>
					<comments>https://photobyte.org/gnu-radio/#comments</comments>
		
		<dc:creator><![CDATA[Mike Richards]]></dc:creator>
		<pubDate>Mon, 17 Jun 2013 07:44:53 +0000</pubDate>
				<category><![CDATA[GNU-Radio]]></category>
		<guid isPermaLink="false">https://photobyte.org/?p=32</guid>

					<description><![CDATA[Watch this space for details of pre-configured Virtual Machines (VMs) that you can use to get started with GNU Radio projects.]]></description>
										<content:encoded><![CDATA[<p>Watch this space for details of pre-configured Virtual Machines (VMs) that you can use to get started with GNU Radio projects.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://photobyte.org/gnu-radio/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Page Caching using Disk: Enhanced 

Served from: photobyte.org @ 2025-07-04 18:36:47 by W3 Total Cache
-->