Page 1 of 1

Automatic Syncing Script

Posted: Wed Jul 01, 2020 11:47 pm
by yahelwa
I started messing around with figuring out how to automate the syncing and configuration process and came up with this python script. It uses Selenium to navigate and access the kerberosSDR's webpages to configure/sync everything. As of now it configures the kerberosSDR to whatever values are defined at the beginning of the script, so modify those to your own use! It then conducts a sample sync/calibrates the IQ and then disables the noise source. DOA is then enabled using the MUSIC algorithm and the browser closes. At this point you should be able to plug in your antennas and use DOA functionalities. I have been testing it with a Raspberry Pi 4 on the latest v1.6.1 stock image and it runs fine but make a back up of your Pi image if you need to in case anything happens. I just thought I'd share in case it might help anyone and am open to feedback!

To use it you need to install some dependencies:
sudo pip3 install selenium
sudo apt-get install chromium-chromedriver

To run: (check below before running)
Download and unzip file to Pi through whatever means you want
Open up terminal and cd to wherever the script is located
Run it using - python3

Before you run it make sure:
You open up the script and change the variables at the top to whatever settings you want inputted
Nothing or 50 ohm terminals are connected to antenna inputs
Raspberry Pi has had enough time to start the kerberos software
Best to run from clean boot or after rebooting software

Shoutout to the KerberosSDR team for their great work!

Re: Automatic Syncing Script

Posted: Sat Jul 04, 2020 7:50 am
by rtlsdrblog
Excellent, thanks for the very nice work! I'll pin this to the top in case others want to try it.

In an advanced future version of the code we're hoping to have everything fully automated. It should be ready before the end of the year.

Re: Automatic Syncing Script

Posted: Thu Jul 09, 2020 9:24 pm
by yahelwa
If you guys are interested I've just finished a much faster version that automates using Chrome's puppeteer API allowing for a headless browser. I successfully included it in the startup script and am personally using it so the kerberos starts up synced and enabled on DOA. Also if anyone is running into any issues using the Selenium implementation you might have to modify the code based on the IP address your kerberos uses for web control.

Re: Automatic Syncing Script

Posted: Tue Aug 18, 2020 7:26 pm
by va3mxy
I am interested, is this something you have posted or would you perhaps email the script?


Re: Automatic Syncing Script

Posted: Fri Aug 21, 2020 1:08 pm
by yahelwa
Yes! I already posted the new version on the github listed above so you can check out the readme and try it out for yourself. If anything isn't clear or working please let me know because I didn't have time to try setting up the dependencies again.

Re: Automatic Syncing Script

Posted: Mon Mar 15, 2021 7:38 pm
by deano
Very interesting, this would help my application when I get beyond the testing phase.