Skip to content

Commit

Permalink
detection of rtl device + info for windows users
Browse files Browse the repository at this point in the history
  • Loading branch information
pavels committed Nov 18, 2015
1 parent f4fee47 commit 87eace7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Connect and configure your rtl-sdr stick ( follow [this guide](http://rtlsdr.org

Launch the software.

**If you are running windows version and only thing you see is grey screen, you need to install Visual C++ Redistributable for Visual Studio 2012 - Get them from [http://www.microsoft.com/en-us/download/details.aspx?id=30679](http://www.microsoft.com/en-us/download/details.aspx?id=30679)**

Usage
-----

Expand Down
13 changes: 12 additions & 1 deletion spektrum.pde
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ class DataPoint {
public double yAvg = 0;
}

void MsgBox( String Msg, String Title ){
// Messages
javax.swing.JOptionPane.showMessageDialog ( null, Msg, Title, javax.swing.JOptionPane.ERROR_MESSAGE );
}

void setupControls() {
int x, y;
int width = 170;
Expand Down Expand Up @@ -245,7 +250,13 @@ void setup() {
}

spektrumReader = new Rtlspektrum(0);
spektrumReader.openDevice();
int status = spektrumReader.openDevice();

if(status < 0){
MsgBox("Can't open rtl-sdr device.","Spektrum");
exit();
return;
}

gains = spektrumReader.getGains();

Expand Down

3 comments on commit 87eace7

@dnegrych
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Pavels,
I have added three features to my local copy of the Spektrum code.

  1. Save and load the startFreg, stopFreq, binStep, scaleMin, scaleMax to a file so that settings are kept from one session to next.
  2. Added a pause button to freeze the display so that a snapshot can be take or the graph looked at more carefully.
  3. Added a program Exit button.

I would be happy to share these code additions but don't have experience using GIT to upload (push) changes. Can you advise how I should proceed?
Dave

@maxbarjr
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Pavel,

I tried using your Spektrum program but unfortunately, every time I launch Spektrum.exe, it comes up with an error message "Can't open rtl-sdr device". I am using Win 10 and even select run as administrator on the program. My rtl-sdr is running on SDR# as I use it to receive APT weather satellite.

Thanks,
Max

@willydp
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Pavel,
Gray screen & Can't open rtl-sdr device message.
Visual C++ is installed on Win10 64bit.
Any clue to solve this please?
Wanted to use it for testing filters and antenna SWR :(

Please sign in to comment.