<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Verdana; font-size: 10pt; color: #000000'><P>Hi there,</P>
<P> </P>
<P>That's odd - do you have WiringPi installed?</P>
<P> </P>
<P><A href="https://projects.drogon.net/raspberry-pi/wiringpi/download-and-install/">https://projects.drogon.net/raspberry-pi/wiringpi/download-and-install/</A></P>
<P> </P>
<P>The script makes use of this excellent program to control the GPIO and also to report on the pin status. Originally I was using the native method of controlling the GPIO using export and echoing a value to the files on the pi. I stumbled onto WiringPi, which makes controlling the pins far simpler and does not require root privs to set them up.</P>
<P> </P>
<P>Simon</P>
<P><BR>----- Original Message -----<BR>From: "Favati" <smile_k@libero.it><BR>To: osmocom-sdr@lists.osmocom.org<BR>Sent: Thursday, 9 May, 2013 18:30:51 GMT +00:00 GMT Britain, Ireland, Portugal<BR>Subject: Re: Raspberry Pi based remote SDR head<BR><BR>Il 03/05/2013 01:57, Simon PurplePlaNET ha scritto:<BR>> Hi folks,<BR>><BR>> I've been messing around with rtl_tcp and an RTL2832 device on a Raspberry Pi and want to add a bank of front end filters and a LNA that can be controlled by the GPIO.<BR>><BR>> I want to allow manual control of the signal path via a web page hosted on the Pi, but also want to be able to have the filters selected automatically based on the frequency that the RTL device is tuned to.<BR>><BR>> I noticed that rtl_tcp helpfully echos the frequency changes to the console, so I wrote a simple shell script to gather this data and control the GPIO.<BR>><BR>> Somebody may have already done this and there is probably a better way to achieve it but, if this would be of any use to you, please feel free to copy and use as you wish.<BR>><BR>> http://www.purpleplanet.org/?q=rtl-robot<BR>><BR>> Cheers,<BR>><BR>> Simon<BR>><BR>><BR>><BR><BR>Just tryed this command:<BR><BR>stdbuf --output=0 rtl_tcp -a 192.168.2.15 -p 1234 > rtl.data<BR><BR>I don't have anything connected to the gpio pins...but i cannot see any <BR>output from your script while changing freqs...(yes, i've gone below <BR>100mhz and above 500mhz).<BR>It's quite strange....the rtl.data is created in the same folder of your <BR>script...<BR>Taking a look at rtl.data, it contains the correct output of the <BR>standard output of rtl_tcp.<BR><BR>Any idea?<BR><BR><BR><BR></P></div></body></html>