Add new comment

Good evening,

thank you very much for your help. I have a AMD (some years old) pc with 6Mb RAM for LINUX( the notebook with windows 7, where it always run has a greater performance) Anyway I just can set 1sec DWELL. I modified your python code, so that it can be executed without graphics and after being the scan ready, it writes a csv file. By executing you see the problem:

$ python ./rtlsdr_scan-only-2.py 96 97 3
Start Frequency is 96.
End Frequency is 97.
DWELL is 3
Samples
9000000.0
Found Elonics E4000 tuner
Exact sample rate is: 3000000.178814 Hz
EXCEPT 1
Found Elonics E4000 tuner
Exact sample rate is: 3000000.178814 Hz
EXCEPT 1
Found Elonics E4000 tuner
Exact sample rate is: 3000000.178814 Hz
EXCEPT 1
^CFound Elonics E4000 tuner
Traceback (most recent call last):
File "./rtlsdr_scan-only-2.py", line 284, in
main()
File "./rtlsdr_scan-only-2.py", line 281, in main
s.scanAndSave(start, stop, dwell, isCal)
File "./rtlsdr_scan-only-2.py", line 220, in scanAndSave
self.thread.run()
File "./rtlsdr_scan-only-2.py", line 146, in run
sdr = self.rtl_setup()
File "./rtlsdr_scan-only-2.py", line 159, in rtl_setup
sdr = rtlsdr.RtlSdr(self.index)
File "/usr/local/lib/python2.7/dist-packages/rtlsdr/rtlsdr.py", line 59, in __init__
result = librtlsdr.rtlsdr_open(self.dev_p, device_index)
KeyboardInterrupt

With Ctrl+C I get every time different errors. For example once again:

$ python ./rtlsdr_scan-only-2.py 96 97 3
Start Frequency is 96.
End Frequency is 97.
DWELL is 3.
Samples
9000000.0
Found Elonics E4000 tuner
Exact sample rate is: 3000000.178814 Hz
Found Elonics E4000 tuner
Exact sample rate is: 3000000.178814 Hz
EXCEPT 1
^CTraceback (most recent call last):
File "./rtlsdr_scan-only-2.py", line 284, in
main()
File "./rtlsdr_scan-only-2.py", line 281, in main
s.scanAndSave(start, stop, dwell, isCal)
File "./rtlsdr_scan-only-2.py", line 220, in scanAndSave
self.thread.run()
File "./rtlsdr_scan-only-2.py", line 140, in run
scan = self.scan(sdr, freq)
File "./rtlsdr_scan-only-2.py", line 171, in scan
capture = sdr.read_samples(self.samples)
File "/usr/local/lib/python2.7/dist-packages/rtlsdr/rtlsdr.py", line 328, in read_samples
raw_data = self.read_bytes(num_bytes)
File "/usr/local/lib/python2.7/dist-packages/rtlsdr/rtlsdr.py", line 305, in read_bytes
self.buffer = array_type()
KeyboardInterrupt

Is it maybe a question of samples??
Thank you very much again.

Best Regards,
Maria Jesus Sogorb Amoros