So I wanted to post my numbers to make sure I am doing this correctly.
I have an RPi 3 running the ADSB Receiver project image dumping to FA, FR24, PF and ADSBExchange. I have my antenna in the west-facing window of my bonus room on the second floor connected to a ProStick Plus.
I previously set my gain to 45 using the piaware-config command.
So I am finally taking a bite and here comes the dumb newbie questions: Is this script supposed to work with 3.3.0 SD image?
I was able to download via the wget command but when I try to run via the above command I get âcommand not foundâ.
I am very much a follow directions kind of person as I have zero clue what I am doing with any of this piaware stuff other than what a step by step writing would tell me.
I too am a noob here, and wish to run a Gain script on my 3.30 SD image. though getting errors too. I have tried 3 different scripts but all seem to be written for other builds.
how can anyone help you if you just say it âdoesnt workâ or is that the error message?
if you followed the instructions in the zip file, installed python2.7 onto your piaware 3.3.0 card, and then copy the python script over to you card as well
run the correct command, and you get an error message of âNOTHING WORKSâ ???
There is no file structure other than one folder. PiAware itself is installed on the SD Card hence the image. Using the included commands from the walk through resulted in nothing happening.
and what âcommand is not foundâ ? -please copy, paste the exact input/output you are using, there are several commands I have listed in the readme, do I have to guess what one you used to diagnose you fault?
have you installed Python2.7?
have you installed the âoptimize-gain-piaware.pyâ file from the zip file and placed it into the correct folder?
did you run the command as
optimize-gain-piaware.py
or
./optimize-gain-piaware.py
or
sudo ./optimize-gain-piaware.py
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Mar 29 22:24:56 2017 from homepc
SSH is enabled and the default password for the âpiâ user has not been changed.
This is a security risk - please type âpasswdâ to set a new password.
One hour ago, I downloaded Piaware 3.3 image, formatted a spare microSD card, wrote Piaware3.3 image.
I then executed the procedure listed below. It worked.
(2) Create new blank file:
pi@piaware:~$ sudo nano optimize-gain-piaware3.py
(3) Copy code in my post for Piaware 3.0.4 image on page 3 of this thread (CLICK HERE), and paste it in newly created file âoptimize-gain-piaware3.pyâ. Save file.
(4) Make executable the file âoptimize-gain-piaware3.pyâ
pi@piaware:~$ sudo chmod +x optimize-gain-piaware3.py
(5) Run the code
pi@piaware:~$ sudo ./optimize-gain-piaware3.py
test 1 of 5
gain= 49.6 messages= 10304 positions= 755 planes= 62
âŚ
âŚ
iâm extremely pi stupid (I see the steps in a nearby post how to setup a script but I donât know how to access the pi to do those steps).
I think I need to do a gain adjustment using the new piaware stick plus that just came.
What I want to know is if I can avoid the script stuff thatâs been dominating this thread and just edit a line in a config text file or something on the sd card of my piaware. Can I put the SD card in my windows pc SD card slot, navigate to a config text file, edit a gain setting in that file, put the sd card back in the pi and do a pi reset command from the FA ADS-B user page where you have dropdown piaware commands?
Alternately, can I use windows explorer to connect to the PI through my home network to edit a config text file?
thanks from someone who is more at home with arduino.
If you know the gain you want, then yes you can do exactly that. Edit piaware-config.txt on the sdcard (it is on the first, FAT, partition so should be visible on Windows etc) and edit in a line like this:
rtlsdr-gain 40
Replace 40 with the gain you want. Save the file, safely-eject the sdcard, return it to the Pi.
This thread is more about automatically finding the âright valueâ but you can always do manual trial-and-error.