Help to make Python's pyrtlsdr work in Windows 10

2,246 views
Skip to first unread message

Alberto Sagues

unread,
Mar 16, 2021, 9:07:19 PM3/16/21
to Society of Amateur Radio Astronomers
I have a windows 10, 64 bit PC, with Python 3.9.2  installed and working very well for normal programs. Got stuck in making pyrtlsdr work. 

I  installed pyrtlsdr, as showin in cmd:
******
C:\>pip install pyrtlsdr
Collecting pyrtlsdr
  Using cached pyrtlsdr-0.2.92-py2.py3-none-any.whl (25 kB)
Installing collected packages: pyrtlsdr
Successfully installed pyrtlsdr-0.2.92
****** 
When I try to cmd-execute: "from rtlsdr import RtlSdr"  (first line in pyrtlsdr · PyPI)

I get the message: "ImportError: Error loading librtlsdr. Make sure librtlsdr (and all of its dependencies) are in your path". Same if I try to use Thonny as the platform.

I read about the issue online (it seems I have plenty of company on this error message )  and act accordingly but:
-everything I tried did not work (granted that some of the remedies suggested are  over my head).
-apparently "dependencies" include dlls but I cannot find them anywhere associated with rtlsdr. I did manage to download and unzip source files that do include .dll and .exe files but I do not know how to incorporate those into python. The article pyrtlsdr Documentation says one can use "python setup.py install" but  haven't had much luck yet in finding  a clear step by step guide on how to do that, and not sure it will work anyway if I go that way. 

Before digging myself deeper into this,  anyone who knows a workaround? Maybe there is a basic installation issue with W10 that requires another way to install?  Thanks much for any help.  Alberto KA4MTO

Steve Berl

unread,
Mar 16, 2021, 9:49:03 PM3/16/21
to sara...@googlegroups.com
Not sure about Win10, but on Linux, you need to use "pip3 install".  "pip install" installs to the python 2.x.

Steve

--
--
You received this message because you are subscribed to the Google
Groups "Society of Amateur Radio Astronomers" group.
To post to this group, send email to sara...@googlegroups.com
To unsubscribe from this group, send email to
sara-list-...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sara-list?hl=en
---
You received this message because you are subscribed to the Google Groups "Society of Amateur Radio Astronomers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sara-list+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sara-list/25705d0d-24e5-45f3-91d3-faf1beceaaffn%40googlegroups.com.


--
-steve

Larry Mayfield

unread,
Mar 17, 2021, 12:57:47 PM3/17/21
to sara...@googlegroups.com

Alberto,  maybe this helps? I don’t know… but I am sympathetic to software issues,…

 

This seems to have the solution to what you experienced and why.. and you may have seen it already…

 

python - pyrtlsdr on windows doesnt import - Stack Overflow

 

hope it helps…

 

larry

Pahrump, NV

--

Alberto Sagues

unread,
Mar 17, 2021, 1:50:22 PM3/17/21
to Society of Amateur Radio Astronomers
Thanks Larry, I had looked into that site before and did again now. My problem may be that, after checking, found that  I do not have any rtlsdr.dll files or librtlsdr.dll  in my c: drive other than the ones I downloaded from a site, and are still in the download folder.  But  shouldn't the pyrtlsdr installation  have done that automatically?  If  I  indeed  have to do a download first,  would you know where I have to put those dlls once downloaded? 

Larry Mayfield

unread,
Mar 17, 2021, 2:40:40 PM3/17/21
to sara...@googlegroups.com

Sadly I do not know where to put them. But if it is looking in a specific location, ie the path, then I suggest first, just adding it to the location where the main program is filed. Restart and try that. May work, probably not, but worth a quick try and costs nothing, lol.

 

Good luck, and there are some really smart members on the list, one will have the right answer…

 

larry

Alberto Sagues

unread,
Mar 17, 2021, 3:02:38 PM3/17/21
to Society of Amateur Radio Astronomers
Thanks again, Larry. I put all the .dll and .exe files in the same directory as the program and now the error message changed to: "ImportError: attempted relative import with no known parent package"  Others had that same issue and the remedies suggested were too arcane for me. This nut seems hard to crack, surprising as I would think folks would be using pyrtlsdr frequently in windows 10.    By the way, this whole thing is because I am trying to program together my sdr operation and antenna rotator schedule in a single python script - know how to do that, if only I could get pyrtlsdr to launch...  Best, Alberto.  (thanks Steve too, may end up diving into  Linux after all if no luck with windows) 

Monroe Pattillo

unread,
Mar 17, 2021, 10:29:50 PM3/17/21
to sara...@googlegroups.com

Maybe this documentation will help (scroll down to troubleshooting)…

 

                https://pyrtlsdr.readthedocs.io/en/latest/Overview.html#rtlsdrtcp

 

Ran into a similar issue with a significant forward upgrade of SDR#.  The RTL-SDR library (rtl_sdr, rtl_tcp) Intellectual Property Rights (IPR) are reserved (I think by Osmocom).  Packages that use the RTL-SDR library aren’t permitted without license to package the library with the installer for their 3rd party deliverables, in this case pyrtlsdr.  The 3rd party installer might provide a Windows .bat file to be manually initiated for downloading and installing the prerequisite RTL-SDR/RTL-TCP libraries presumably to circumvent the packaging restriction because they are downloaded from the IPR owner provided public access and it must be initialed manually, or the 3rd party may just list it as a prerequisite and you are on your own to figure it out.

 

The IPR battle in this case might be because while the core hardware of most SDRs is cheap and appears to be the same for several brands of SDR devices, the one that developed the libraries is associated with their own hardware packaging and by reserving their IPR they make it difficult for competitors to enter the market and perturb their supposed dominance – IMHO.

 

Monroe

From: sara...@googlegroups.com [mailto:sara...@googlegroups.com] On Behalf Of Alberto Sagues
Sent: Wednesday, March 17, 2021 1:50 PM
To: Society of Amateur Radio Astronomers
Subject: Re: [SARA] Help to make Python's pyrtlsdr work in Windows 10

 

Thanks Larry, I had looked into that site before and did again now. My problem may be that, after checking, found that  I do not have any rtlsdr.dll files or librtlsdr.dll  in my c: drive other than the ones I downloaded from a site, and are still in the download folder.  But  shouldn't the pyrtlsdr installation  have done that automatically?  If  I  indeed  have to do a download first,  would you know where I have to put those dlls once downloaded? 

On Wednesday, March 17, 2021 at 12:57:47 PM UTC-4 Lawrence E. Mayfield wrote:

Alberto,  maybe this helps? I don’t know… but I am sympathetic to software issues,…

 

This seems to have the solution to what you experienced and why. and you may have seen it already…

To unsubscribe from this group and stop receiving emails from it, send an email to sara-list+...@googlegroupscom.

--
--
You received this message because you are subscribed to the Google
Groups "Society of Amateur Radio Astronomers" group.
To post to this group, send email to sara...@googlegroups.com
To unsubscribe from this group, send email to
sara-list-...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sara-list?hl=en
---
You received this message because you are subscribed to the Google Groups "Society of Amateur Radio Astronomers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sara-list+...@googlegroups.com.

Alberto Sagues

unread,
Mar 17, 2021, 10:45:20 PM3/17/21
to Society of Amateur Radio Astronomers
Hi Monroe, thanks, it looks like some files are indeed missing then. When I tried to access  https://pyrtlsdr.readthedocs.io/en/latest/Overview.html#rtlsdrtcp I get a message "this page does not exist yet"; can you please check that link? Best, Alberto. .

Monroe Pattillo

unread,
Mar 17, 2021, 11:10:51 PM3/17/21
to sara...@googlegroups.com

Sorry, it’s a browser section within web page reference issue.  Drop the #.... from the end of the link and it should work.  Here’s an updated and verified link (still need to scroll way down to Troubleshooting section of web page)…

 

                Overview — pyrtlsdr 0.2.92 documentation

 

Monroe

From: sara...@googlegroups.com [mailto:sara...@googlegroups.com] On Behalf Of Alberto Sagues
Sent: Wednesday, March 17, 2021 10:45 PM
To: Society of Amateur Radio Astronomers
Subject: Re: [SARA] Help to make Python's pyrtlsdr work in Windows 10

 

Hi Monroe, thanks, it looks like some files are indeed missing then. When I tried to access  https://pyrtlsdr.readthedocs.io/en/latest/Overview.html#rtlsdrtcp I get a message "this page does not exist yet"; can you please check that link? Best, Alberto. .

On Wednesday, March 17, 2021 at 10:29:50 PM UTC-4 monroe_pattillo wrote:

Maybe this documentation will help (scroll down to troubleshooting)…

 

                https://pyrtlsdr.readthedocs.io/en/latest/Overview.html#rtlsdrtcp

 

Ran into a similar issue with a significant forward upgrade of SDR#.  The RTL-SDR library (rtl_sdr, rtl_tcp) Intellectual Property Rights (IPR) are reserved (I think by Osmocom).  Packages that use the RTL-SDR library aren’t permitted without license to package the library with the installer for their 3rd party deliverables, in this case pyrtlsdr.  The 3rd party installer might provide a Windows .bat file to be manually initiated for downloading and installing the prerequisite RTL-SDR/RTL-TCP libraries presumably to circumvent the packaging restriction because they are downloaded from the IPR owner provided public access and it must be initialed manually, or the 3rd party may just list it as a prerequisite and you are on your own to figure it out.

 

The IPR battle in this case might be because while the core hardware of most SDRs is cheap and appears to be the same for several brands of SDR devices, the one that developed the libraries is associated with their own hardware packaging and by reserving their IPR they make it difficult for competitors to enter the market and perturb their supposed dominance – IMHO.

 

Monroe

From: sara...@googlegroups.com [mailto:sara...@googlegroups.com] On Behalf Of Alberto Sagues
Sent: Wednesday, March 17, 2021 1:50 PM
To: Society of Amateur Radio Astronomers
Subject: Re: [SARA] Help to make Python's pyrtlsdr work in Windows 10

 

Thanks Larry, I had looked into that site before and did again now. My problem may be that, after checking, found that  I do not have any rtlsdr.dll files or librtlsdr.dll  in my c: drive other than the ones I downloaded from a site, and are still in the download folder.  But  shouldn't the pyrtlsdr installation  have done that automatically?  If  I  indeed  have to do a download first,  would you know where I have to put those dlls once downloaded? 

To post to this group, send email to sara..@googlegroups.com


To unsubscribe from this group, send email to
sara-list-...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sara-list?hl=en
---
You received this message because you are subscribed to the Google Groups "Society of Amateur Radio Astronomers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sara-list+...@googlegroups.com.

--
--
You received this message because you are subscribed to the Google
Groups "Society of Amateur Radio Astronomers" group.
To post to this group, send email to sara...@googlegroups.com
To unsubscribe from this group, send email to
sara-list-...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sara-list?hl=en
---
You received this message because you are subscribed to the Google Groups "Society of Amateur Radio Astronomers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sara-list+...@googlegroups.com.

Alberto Sagues

unread,
Mar 17, 2021, 11:52:31 PM3/17/21
to Society of Amateur Radio Astronomers

Thanks again Monroe, I had actually encountered that page earlier but now am getting the meaning a bit better. So the way I understand it, in addition to installing pyrtlsdr, I have to download and install myself all the librtlsdr DLL files because pyrtlsdr does not have - or is not allowed to install- them, and then I should  put those files in a special folder. I tried to do something like that but got lost in the process. Here is where I am with some questions in case you could throw some light on those and I am not imposing too much:
  1. I went to GitHub - librtlsdr/librtlsdr: Software to turn the RTL2832U into an SDR and actually downloaded the collection, but:  is that the right group of files I need? I don't see any dlls there, or any .exe or .bat files to churn the material into dlls.
  2. If that is not the right place, where would i go instead?
  3. If I download the right material, would I have to do further processing like using "sudo"  commands in the windows cmd box to get them to work? As you can tell, I am early in the learning curve there, maybe there are some tutorials that you might suggest.
Thanks much for any assistance that you could provide. Amazing that it is taking so much doing to set this  up, compared with how easy it was to install sdr# and such. .   Best, Alberto. 

Monroe Pattillo

unread,
Mar 18, 2021, 2:16:21 AM3/18/21
to sara...@googlegroups.com

For pre-built binaries (DLLs) and testing applications (.EXE) for Windows (32 or 64 bit) look here…

 

                https://ftp.osmocom.org/binaries/windows/rtl-sdr/

I  installed pyrtlsdr, as showin in cmd:

******

C:\>pip install pyrtlsdr

Collecting pyrtlsdr

  Using cached pyrtlsdr-0.2.92-py2.py3-none-any.whl (25 kB)

Installing collected packages: pyrtlsdr

Successfully installed pyrtlsdr-0.2.92

****** 

When I try to cmd-execute: "from rtlsdr import RtlSdr"  (first line in pyrtlsdr · PyPI)

 

I get the message: "ImportError: Error loading librtlsdr. Make sure librtlsdr (and all of its dependencies) are in your path" Same if I try to use Thonny as the platform.

--

Larry Mayfield

unread,
Mar 18, 2021, 8:25:38 AM3/18/21
to sara...@googlegroups.com

Monroe, impressive list. What is in the zip files or do you need to open each one to see what is compressed in the file? Whatever, impressive list!

 

Larry

Pahrump, NV

Alberto Sagues

unread,
Mar 18, 2021, 10:51:54 AM3/18/21
to Society of Amateur Radio Astronomers
Hi Monroe, Larry: thanks for the link. I downloaded and extracted the latest 32 bit version (they say to use that one instead of 64), and placed all the files in the rtlsdr subfolder of site-packages. I now get the message "ImportError: attempted relative import with no known parent package". Same if I use the latest 64 bit version.  If i make current directory theone above, it reverts to the old message saying that the file is not available.  I also noticed that the files (screenshot of list pasted below) do not include some of the dependencies like  libgcc_s_dw2-1.dll, and  that there is no "the README"  file either like the one they mentioned in the troubleshooting note.  Tried also other path alternatives so a snot to miss elements, as suggested online, with no luck either. 
 It looks like we are getting closer but not quite there yet - maybe there is yet another supplemental download needed?  Best, Alberto.
Capture.PNG

Michiel Klaassen

unread,
Mar 18, 2021, 11:30:07 AM3/18/21
to sara-list
Hi Alberto, All,
Perhaps you can try to download the ' RTL utils'  from the download folder here
It works for me.

Regards
Michiel


Op do 18 mrt. 2021 om 14:51 schreef Alberto Sagues <sagma...@gmail.com>:

Alberto Sagues

unread,
Mar 18, 2021, 1:28:46 PM3/18/21
to Society of Amateur Radio Astronomers
Thanks Michiel for your hint. I copied into the folder ....\site packages\retlsdr  all the files in the main body of rlt-sdr-release, and in the main folder the files that were in  the subfolder (x 32). 
I still keep on getting the same : "   'Error loading librtlsdr. Make sure librtlsdr '\
ImportError: Error loading librtlsdr. Make sure librtlsdr (and all of its dependencies) are in your path   ".  Did your get pyrtlsdr to work in your windows system? If so, I would much appreciate to know more about what files you placed where.  Best regards, Alberto.  

Monroe Pattillo

unread,
Mar 18, 2021, 2:21:28 PM3/18/21
to sara...@googlegroups.com

Determine if your running Windows 32-bit or 64-bit (Windows, My Computer desktop icon, context menu, properties) and then pick the zip archive with the newest date for 32 or 64 bit then download it and unzip it and then copy the files into the same folder as pyrtlsdr, hopefully it won’t replace any same named files that are critical to pyrtlsdr. 

 

Having never used pyrtlsdr I can’t help beyond that point at this time.  Unless pyrtlsdr is doing something unusual I wouldn’t think an interpreted object oriented language with automatic garbage collection like Python could stream the RF IQ data samples at too high a rate if it is not using block continuous streaming and asynchronous threads to bucket brigade buffers so as not to drop anything.  To get to the multi-megabit level of IO data stream access, demodulation processing, or capture to mass storage typically requires machine and operating system specific C++ or even C based software, but for really high performance some still fall back to machine specific assembly language to squeak out that last 20%+.

 

Monroe

From: Larry Mayfield [mailto:drm...@mayfco.com]
Sent: Thursday, March 18, 2021 8:25 AM
To: sara...@googlegroups.com
Subject: RE: [SARA] Help to make Python's pyrtlsdr work in Windows 10

 

Monroe, impressive list. What is in the zip files or do you need to open each one to see what is compressed in the file? Whatever, impressive list!

 

Larry

Pahrump, NV

 

From: sara...@googlegroups.com [mailto:sara...@googlegroups.com] On Behalf Of Monroe Pattillo
Sent: Wednesday, March 17, 2021 11:16 PM
To: sara...@googlegroups.com
Subject: RE: [SARA] Help to make Python's pyrtlsdr work in Windows 10

 

For pre-built binaries (DLLs) and testing applications (.EXE) for Windows (32 or 64 bit) look here…

 

Michiel Klaassen

unread,
Mar 18, 2021, 2:49:57 PM3/18/21
to sara-list
Hi Alberto,
att a zip with your python script which is working on a W7 32b.
Regards
Michiel

Op do 18 mrt. 2021 om 17:28 schreef Alberto Sagues <sagma...@gmail.com>:
alberto.zip

Alberto Sagues

unread,
Mar 18, 2021, 4:57:22 PM3/18/21
to Society of Amateur Radio Astronomers
Some success: pleased to report that thanks to all your wise advice now I can get over the first line :  'from rtlsdr import RtlSdr'   without the error message!  I used Michiel's RTL Utils and copied all the files in the main body plus the files inside the X64  subfolder into the ....\site packages\rtlsdr  folder, and operated python while making the current directory as C:\Users\18139\AppData\Local\Programs\Python\Python39\Lib\site-packages.  Next dragon to slay: I am now getting the error      " raise LibUSBError(result, 'Could not open SDR (device index = %d)' % (device_index)) rtlsdr.rtlsdr.LibUSBError: <LIBUSB_ERROR_NOT_SUPPORTED (-12): Operation not supported or unimplemented on this platform> "Could not open SDR (device index = 0)"     ". I suppose that means I have to install  the dongle first, which I had not done yet in this particular computer. Looking into that online, hoping I will not have to pester everyone too much from here on...  Stay tuned - pun intended.  Thanks again, Alberto. 

Michiel Klaassen

unread,
Mar 18, 2021, 5:08:55 PM3/18/21
to sara-list
Have you installed libusb?


Michiel

Op do 18 mrt. 2021 om 20:57 schreef Alberto Sagues <sagma...@gmail.com>:

Monroe Pattillo

unread,
Mar 18, 2021, 7:10:58 PM3/18/21
to sara...@googlegroups.com

Yes, you need an SDR USB dongle installed with an antenna connected to it.  Also, if Windows is 64-bit, and the version of Python installed is 64-bit, then the RTL-SDR libraries and test tools should also be 64-bit. 

 

Learn to use the test tools that come with the RTL-SDR library files.  Even if they just direct output to a later discarded file they will prove that the USB dongle hardware, the driver, and the libraries are all working before focusing any error issues on pyrtlsdr.

 

Pyrtlsdr is a library wrapper to RTL_SDR (librtlsdr) which is lower level library and not a complete application.  Are you developing an SDR application in Python or have you already selected one that uses pyrtlsdr?  If so, which one?

 

Monroe

From: sara...@googlegroups.com [mailto:sara...@googlegroups.com] On Behalf Of Alberto Sagues
Sent: Thursday, March 18, 2021 4:57 PM
To: Society of Amateur Radio Astronomers
Subject: Re: [SARA] Help to make Python's pyrtlsdr work in Windows 10

 

Some success: pleased to report that thanks to all your wise advice now I can get over the first line :  'from rtlsdr import RtlSdr'   without the error message!  I used Michiel's RTL Utils and copied all the files in the main body plus the files inside the X64  subfolder into the ....\site packages\rtlsdr  folder, and operated python while making the current directory as C:\Users\18139\AppData\Local\Programs\Python\Python39\Lib\site-packages.  Next dragon to slay: I am now getting the error      " raise LibUSBError(result, 'Could not open SDR (device index = %d)' % (device_index)) rtlsdr.rtlsdr.LibUSBError: <LIBUSB_ERROR_NOT_SUPPORTED (-12): Operation not supported or unimplemented on this platform> "Could not open SDR (device index = 0)"     ". I suppose that means I have to install  the dongle first, which I had not done yet in this particular computer. Looking into that online, hoping I will not have to pester everyone too much from here on...  Stay tuned - pun intended.  Thanks again, Alberto. 

On Thursday, March 18, 2021 at 2:49:57 PM UTC-4 vmin...@gmail.com wrote:

Hi Alberto,

att a zip with your python script which is working on a W7 32b.

Regards

Michiel

 

Op do 18 mrt. 2021 om 17:28 schreef Alberto Sagues <sagma...@gmail.com>:

Thanks Michiel for your hint. I copied into the folder ....\site packages\retlsdr  all the files in the main body of rlt-sdr-release, and in the main folder the files that were in  the subfolder (x 32). 

I still keep on getting the same : "   'Error loading librtlsdr. Make sure librtlsdr '\
ImportError: Error loading librtlsdr. Make sure librtlsdr (and all of its dependencies) are in your path   ".  Did your get pyrtlsdr to work in your windows system? If so, I would much appreciate to know more about what files you placed where.  Best regards, Alberto.  

On Thursday, March 18, 2021 at 11:30:07 AM UTC-4 vmin...@gmail.com wrote:

Hi Alberto, All,

Perhaps you can try to download the ' RTL utils'  from the download folder here

It works for me.

 

Regards

Michiel

 

 

Op do 18 mrt. 2021 om 14:51 schreef Alberto Sagues <sagma...@gmail.com>:

Hi Monroe, Larry: thanks for the link. I downloaded and extracted the latest 32 bit version (they say to use that one instead of 64), and placed all the files in the rtlsdr subfolder of site-packages. I now get the message "ImportError: attempted relative import with no known parent package". Same if I use the latest 64 bit version.  If i make current directory theone above, it reverts to the old message saying that the file is not available  I also noticed that the files (screenshot of list pasted below) do not include some of the dependencies like  libgcc_s_dw2-1.dll, and  that there is no "the README"  file either like the one they mentioned in the troubleshooting note.  Tried also other path alternatives so a snot to miss elements, as suggested online, with no luck either. 

Alberto Sagues

unread,
Mar 21, 2021, 12:43:37 AM3/21/21
to Society of Amateur Radio Astronomers
Hi All, happy to report that with all your help I finally got  functionality without errors ,  including data output in the first example of Overview — pyrtlsdr 0.2.92 documentation !  The main obstacle  was  ensuring that  I had the right X64 vs X32  folder files copied into the rtlsdr folder in  each machine  (working with two 64 bit computers,  but one had a python 32 bit version  and the other had a 64 bit python). The packaged downloads from from http://parac.eu/downloads.htm were very helpful, thanks Michiel. In one of the computers, a Microsoft surface pro 2, ran into a  hard to solve issue  where the single dongle showed as two ;  was able to solve that per the instructions in RTLSDR Dongle appearing as more than 1 device?... Solved! : RTLSDR (reddit.com) which involved a tweak in the eprom - nerves of steel for that....  This was so much "fun" that I am writing a beginner-oriented guide that might save some of the aggravation for others, hope to post it soon. Per Monroe's question, this is to develop an application  in python to read  a small frequency range around the  21 cm line,  then tell Arduino to rotate the antenna a bit, read again, repeat at various times of the day, etc. essentially to automate an operation that i have been doing by hand .  Best regards and tnx again, Alberto. 

Monroe Pattillo

unread,
Mar 21, 2021, 3:12:07 AM3/21/21
to sara...@googlegroups.com

So, a closed loop auto-guider using signal amplitude of a narrow frequency range as the primary control source. 

 

In optical astrophotography we auto-guide using a second monochrome CMOS camera of a megapixel of less looking at a very much zoomed up medium brightness star in a very narrow field of view.  We get a fraction of a pixel guiding accuracy in both X and Y directions.

 

If your antenna is of more than a degree Field of View (FoV) the RF auto-guider may make the antenna jitter around several celestial targets all within the same field of view all producing varying signal amplitudes in the 21cm line, particularly if the intended signal source is briefly attenuated due to transient atmospheric conditions.  You may want to define the threshold value for what constitutes a good signal versus loss of alignment tracking.

 

I’m assuming your antenna mount is equatorial/polar aligned and that your target is aligned with the ecliptic otherwise you’ll need two motors.  While RA and Dec might stay close for a period of time for an equatorial mount the azimuth and altitude would both change for an AZ mount.

 

Our optical guiders can move in X and Y, forward and backward.  If you get your RF amplitude auto-guider running without a backward capability it may need a maximum offset software limit.  If it ever gets ahead of the source due to transient atmospheric conditions which then clear up the alignment may take time to catch up.  In other words don’t proclaim loss of tracking signal just because it dropped below the defined threshold.  Give it a couple minutes to see if it comes back into lock.

 

It is an intriguing concept.  Luckily, RF FoV is often a little more forgiving than optical.

 

Monroe

From: sara...@googlegroups.com [mailto:sara...@googlegroups.com] On Behalf Of Alberto Sagues
Sent: Sunday, March 21, 2021 12:44 AM
To: Society of Amateur Radio Astronomers
Subject: Re: [SARA] Help to make Python's pyrtlsdr work in Windows 10

 

Hi All, happy to report that with all your help I finally got  functionality without errors ,  including data output in the first example of Overview — pyrtlsdr 0.2.92 documentation !  The main obstacle  was  ensuring that  I had the right X64 vs X32  folder files copied into the rtlsdr folder in  each machine  (working with two 64 bit computers,  but one had a python 32 bit version  and the other had a 64 bit python). The packaged downloads from from http://parac.eu/downloads.htm were very helpful, thanks Michiel. In one of the computers, a Microsoft surface pro 2, ran into a  hard to solve issue  where the single dongle showed as two ;  was able to solve that per the instructions in RTLSDR Dongle appearing as more than 1 device?... Solved! : RTLSDR (reddit.com) which involved a tweak in the eprom - nerves of steel for that....  This was so much "fun" that I am writing a beginner-oriented guide that might save some of the aggravation for others, hope to post it soon. Per Monroe's question, this is to develop an application  in python to read  a small frequency range around the  21 cm line,  then tell Arduino to rotate the antenna a bit, read again, repeat at various times of the day, etc. essentially to automate an operation that i have been doing by hand .  Best regards and tnx again, Alberto. 

On Thursday, March 18, 2021 at 7:10:58 PM UTC-4 monroe_pattillo wrote:

Yes, you need an SDR USB dongle installed with an antenna connected to it.  Also, if Windows is 64-bit, and the version of Python installed is 64-bit, then the RTL-SDR libraries and test tools should also be 64-bit. 

 

Learn to use the test tools that come with the RTL-SDR library files.  Even if they just direct output to a later discarded file they will prove that the USB dongle hardware, the driver, and the libraries are all working before focusing any error issues on pyrtlsdr.

 

Pyrtlsdr is a library wrapper to RTL_SDR (librtlsdr) which is lower level library and not a complete application.  Are you developing an SDR application in Python or have you already selected one that uses pyrtlsdr?  If so, which one?

 

Monroe

From: sara...@googlegroups.com [mailto:sara...@googlegroups.com] On Behalf Of Alberto Sagues
Sent: Thursday, March 18, 2021 4:57 PM
To: Society of Amateur Radio Astronomers
Subject: Re: [SARA] Help to make Python's pyrtlsdr work in Windows 10

 

Some success: pleased to report that thanks to all your wise advice now I can get over the first line :  'from rtlsdr import RtlSdr'   without the error message!  I used Michiel's RTL Utils and copied all the files in the main body plus the files inside the X64  subfolder into the ....\site packages\rtlsdr  folder, and operated python while making the current directory as C:\Users\18139\AppData\Local\Programs\Python\Python39\Lib\site-packages.  Next dragon to slay: I am now getting the error      " raise LibUSBError(result, 'Could not open SDR (device index = %d)' % (device_index)) rtlsdr.rtlsdr.LibUSBError: <LIBUSB_ERROR_NOT_SUPPORTED (-12): Operation not supported or unimplemented on this platform> "Could not open SDR (device index = 0)"     ". I suppose that means I have to install  the dongle first, which I had not done yet in this particular computer. Looking into that online, hoping I will not have to pester everyone too much from here on...  Stay tuned - pun intended.  Thanks again, Alberto. 

On Thursday, March 18, 2021 at 2:49:57 PM UTC-4 vmin..@gmail.com wrote:

Hi Alberto,

att a zip with your python script which is working on a W7 32b.

Regards

Michiel

 

Op do 18 mrt. 2021 om 17:28 schreef Alberto Sagues <sagma...@gmailcom>:

Thanks Michiel for your hint. I copied into the folder ....\site packages\retlsdr  all the files in the main body of rlt-sdr-release, and in the main folder the files that were in  the subfolder (x 32). 

I still keep on getting the same : "   'Error loading librtlsdr. Make sure librtlsdr '\
ImportError: Error loading librtlsdr. Make sure librtlsdr (and all of its dependencies) are in your path   ".  Did your get pyrtlsdr to work in your windows system? If so, I would much appreciate to know more about what files you placed where.  Best regards, Alberto.  

On Thursday, March 18, 2021 at 11:30:07 AM UTC-4 vmin...@gmail.com wrote:

Hi Alberto, All,

Perhaps you can try to download the ' RTL utils'  from the download folder here

It works for me

 

Regards

Michiel

 

--
--
You received this message because you are subscribed to the Google
Groups "Society of Amateur Radio Astronomers" group.

To post to this group, send email to sara..@googlegroups.com


To unsubscribe from this group, send email to
sara-list-...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sara-list?hl=en
---
You received this message because you are subscribed to the Google Groups "Society of Amateur Radio Astronomers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sara-list+...@googlegroups.com.

--
--
You received this message because you are subscribed to the Google
Groups "Society of Amateur Radio Astronomers" group.
To post to this group, send email to sara...@googlegroups.com
To unsubscribe from this group, send email to

sara-list-...@googlegroupscom


For more options, visit this group at
http://groups.google.com/group/sara-list?hl=en
---
You received this message because you are subscribed to the Google Groups "Society of Amateur Radio Astronomers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sara-list+...@googlegroups.com.

--
--
You received this message because you are subscribed to the Google
Groups "Society of Amateur Radio Astronomers" group.

To post to this group, send email to sara..@googlegroups.com
To unsubscribe from this group, send email to
sara-list-...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sara-list?hl=en
---
You received this message because you are subscribed to the Google Groups "Society of Amateur Radio Astronomers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sara-list+...@googlegroups.com.

--
--
You received this message because you are subscribed to the Google
Groups "Society of Amateur Radio Astronomers" group.
To post to this group, send email to sara...@googlegroups.com
To unsubscribe from this group, send email to
sara-list-...@googlegroups.com
For more options, visit this group at

--

--
You received this message because you are subscribed to the Google
Groups "Society of Amateur Radio Astronomers" group.
To post to this group, send email to sara...@googlegroups.com
To unsubscribe from this group, send email to
sara-list-...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sara-list?hl=en
---
You received this message because you are subscribed to the Google Groups "Society of Amateur Radio Astronomers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sara-list+...@googlegroups.com.

Michiel Klaassen

unread,
Mar 21, 2021, 5:14:29 AM3/21/21
to sara-list
Hi Alberto,

Nice that it works now.

Your tracking system could work; tracking the sun in that way must be possible.

If you want to track other sources perhaps you can also try it with Python.
Only a few lines are needed; see

Success.
Regards,
Michiel


Op zo 21 mrt. 2021 om 07:12 schreef Monroe Pattillo <monroe_...@bellsouth.net>:
radec-to-azel.jpg

Larry Mayfield

unread,
Mar 21, 2021, 7:49:08 AM3/21/21
to sara...@googlegroups.com

Fantastic, Alberto!

 

I will be waiting for your guide!  Please make it detailed and include any software code as well.  Heck, even charge a bit for it!

 

Larry

Pahrump, NV

Steve Berl

unread,
Apr 3, 2021, 1:08:05 PM4/3/21
to sara...@googlegroups.com
I've seen sun trackers with a pair of photodiodes separated by a bit of cardboard. If the sun is shining on both diodes you are pointed at the sun. If one is in the shade of the cardboard, turn the antenna towards the sunny one until they are both sunny again. This works for a equatorial mount. With an alt/az mount you would need 2 pairs of diodes.

Steve



--
-steve

Monroe Pattillo

unread,
Apr 3, 2021, 2:04:32 PM4/3/21
to sara...@googlegroups.com

Sounds like it ought to be a commercially produced gadget that is strapped onto the side of the OTA and plugs into the guiding port of a mount for solar tracking for mounts whose software lacks Sun awareness or a lack of understanding that solar tracking is not exactly the same as deep sky tracking.  Maybe use factory collinear aligned cocktail straw size aluminum tubes an inch long for higher resolution tracking.  Sounds interesting.

 

Monroe

From: sara...@googlegroups.com [mailto:sara...@googlegroups.com] On Behalf Of Steve Berl
Sent: Saturday, April 03, 2021 1:08 PM
To: sara...@googlegroups.com
Subject: Re: [SARA] Help to make Python's pyrtlsdr work in Windows 10

 

I've seen sun trackers with a pair of photodiodes separated by a bit of cardboard. If the sun is shining on both diodes you are pointed at the sun. If one is in the shade of the cardboard, turn the antenna towards the sunny one until they are both sunny again. This works for a equatorial mount. With an alt/az mount you would need 2 pairs of diodes

 

Steve

 

On Sun, Mar 21, 2021 at 4:49 AM Larry Mayfield <drm...@mayfco.com> wrote:

Fantastic, Alberto!

 

I will be waiting for your guide!  Please make it detailed and include any software code as well.  Heck, even charge a bit for it!

 

Larry

Pahrump, NV

 

From: sara...@googlegroups.com [mailto:sara...@googlegroups.com] On Behalf Of Alberto Sagues
Sent: Saturday, March 20, 2021 9:44 PM
To: Society of Amateur Radio Astronomers <sara...@googlegroups.com>
Subject: Re: [SARA] Help to make Python's pyrtlsdr work in Windows 10

 

Hi All, happy to report that with all your help I finally got  functionality without errors ,  including data output in the first example of Overview — pyrtlsdr 0.2.92 documentation !  The main obstacle  was  ensuring that  I had the right X64 vs X32  folder files copied into the rtlsdr folder in  each machine  (working with two 64 bit computers,  but one had a python 32 bit version  and the other had a 64 bit python). The packaged downloads from from http://parac.eu/downloads.htm were very helpful, thanks Michiel. In one of the computers, a Microsoft surface pro 2, ran into a  hard to solve issue  where the single dongle showed as two ;  was able to solve that per the instructions in RTLSDR Dongle appearing as more than 1 device?... Solved! : RTLSDR (reddit.com) which involved a tweak in the eprom - nerves of steel for that....  This was so much "fun" that I am writing a beginner-oriented guide that might save some of the aggravation for others, hope to post it soon. Per Monroe's question, this is to develop an application  in python to read  a small frequency range around the  21 cm line,  then tell Arduino to rotate the antenna a bit, read again, repeat at various times of the day, etc. essentially to automate an operation that i have been doing by hand .  Best regards and tnx again, Alberto. 

On Thursday, March 18, 2021 at 7:10:58 PM UTC-4 monroe_pattillo wrote:

Yes, you need an SDR USB dongle installed with an antenna connected to it.  Also, if Windows is 64-bit, and the version of Python installed is 64-bit, then the RTL-SDR libraries and test tools should also be 64-bit. 

 

Learn to use the test tools that come with the RTL-SDR library files.  Even if they just direct output to a later discarded file they will prove that the USB dongle hardware, the driver, and the libraries are all working before focusing any error issues on pyrtlsdr.

 

Pyrtlsdr is a library wrapper to RTL_SDR (librtlsdr) which is lower level library and not a complete application.  Are you developing an SDR application in Python or have you already selected one that uses pyrtlsdr?  If so, which one?

 

Monroe

From: sara...@googlegroups.com [mailto:sara...@googlegroupscom] On Behalf Of Alberto Sagues


 

--

-steve

--

--
You received this message because you are subscribed to the Google
Groups "Society of Amateur Radio Astronomers" group.
To post to this group, send email to sara...@googlegroups.com
To unsubscribe from this group, send email to
sara-list-...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sara-list?hl=en
---
You received this message because you are subscribed to the Google Groups "Society of Amateur Radio Astronomers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sara-list+...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages