Discussion:
[Hackrf-dev] Why Hackrf only one time run and stop
Rustu Yucel
2017-02-13 20:37:35 UTC
Permalink
After I install gqrx (with guide of gqrx.dk website) I am not able to get
samples from hack rf (firmware 2017.02.1). I am receiving this
~$ hackrf_transfer -f 102MHz -r /dev/null
call hackrf_set_sample_rate(10000000 Hz/10.000 MHz)
call hackrf_set_freq(102 Hz/0.000 MHz)
Stop with Ctrl-C
3.4 MiB / 1.000 sec = 3.4 MiB/second

Exiting... hackrf_is_streaming() result: streaming terminated (-1004)
Total time: 1.00012 s
hackrf_stop_rx() done
hackrf_close() done
hackrf_exit() done
fclose(fd) done
exit

Why only one sample and exiting after? Any help?
Dominic Spill
2017-02-13 20:57:27 UTC
Permalink
Post by Rustu Yucel
After I install gqrx (with guide of gqrx.dk website) I am not able to get
samples from hack rf (firmware 2017.02.1). I am receiving this
Post by Rustu Yucel
~$ hackrf_transfer -f 102MHz -r /dev/null
call hackrf_set_sample_rate(10000000 Hz/10.000 MHz)
call hackrf_set_freq(102 Hz/0.000 MHz)
You need to specify -f 102e6 or -f 102000000 to receive on 102MHz.
Post by Rustu Yucel
Stop with Ctrl-C
3.4 MiB / 1.000 sec = 3.4 MiB/second
This data rate is very low, it should be around 20MiB/second. What is the
host system that you are running on? Is it embedded hardware?
Post by Rustu Yucel
Exiting... hackrf_is_streaming() result: streaming terminated (-1004)
Total time: 1.00012 s
hackrf_stop_rx() done
hackrf_close() done
hackrf_exit() done
fclose(fd) done
exit
Why only one sample and exiting after? Any help?
Could you give us the output of hackrf_info ?
Rustu Yucel
2017-02-13 21:28:31 UTC
Permalink
Ä°ts ubuntu 16.10 and it was working smoothly till gqrx install. Gqrx website asked first remove some previous packs then I can not get signal. just 1 max signal then its stops. Help?

Sent from my iPhone
Post by Dominic Spill
After I install gqrx (with guide of gqrx.dk website) I am not able to get samples from hack rf (firmware 2017.02.1). I am receiving this
~$ hackrf_transfer -f 102MHz -r /dev/null
call hackrf_set_sample_rate(10000000 Hz/10.000 MHz)
call hackrf_set_freq(102 Hz/0.000 MHz)
You need to specify -f 102e6 or -f 102000000 to receive on 102MHz.
Stop with Ctrl-C
3.4 MiB / 1.000 sec = 3.4 MiB/second
This data rate is very low, it should be around 20MiB/second. What is the host system that you are running on? Is it embedded hardware?
Exiting... hackrf_is_streaming() result: streaming terminated (-1004)
Total time: 1.00012 s
hackrf_stop_rx() done
hackrf_close() done
hackrf_exit() done
fclose(fd) done
exit
Why only one sample and exiting after? Any help?
Could you give us the output of hackrf_info ?
Dominic Spill
2017-02-13 21:38:11 UTC
Permalink
Post by Rustu Yucel
Ä°ts ubuntu 16.10 and it was working smoothly till gqrx install. Gqrx
website asked first remove some previous packs then I can not get signal.
just 1 max signal then its stops. Help?

Which instructions are you following? Which packages did it ask you to
remove before installation?

As I asked in my previous email, what is the hardware you are running on?
What is the output of hackrf_info?
Post by Rustu Yucel
Post by Rustu Yucel
After I install gqrx (with guide of gqrx.dk website) I am not able to
get samples from hack rf (firmware 2017.02.1). I am receiving this
Post by Rustu Yucel
Post by Rustu Yucel
~$ hackrf_transfer -f 102MHz -r /dev/null
call hackrf_set_sample_rate(10000000 Hz/10.000 MHz)
call hackrf_set_freq(102 Hz/0.000 MHz)
You need to specify -f 102e6 or -f 102000000 to receive on 102MHz.
Post by Rustu Yucel
Stop with Ctrl-C
3.4 MiB / 1.000 sec = 3.4 MiB/second
This data rate is very low, it should be around 20MiB/second. What is
the host system that you are running on? Is it embedded hardware?
Post by Rustu Yucel
Post by Rustu Yucel
Exiting... hackrf_is_streaming() result: streaming terminated (-1004)
Total time: 1.00012 s
hackrf_stop_rx() done
hackrf_close() done
hackrf_exit() done
fclose(fd) done
exit
Why only one sample and exiting after? Any help?
Could you give us the output of hackrf_info ?
Alexandru Csete
2017-02-13 21:45:18 UTC
Permalink
Post by Dominic Spill
İts ubuntu 16.10 and it was working smoothly till gqrx install. Gqrx
website asked first remove some previous packs then I can not get signal.
just 1 max signal then its stops. Help?
Which instructions are you following? Which packages did it ask you to
remove before installation?
I assume these are the instructions:
http://gqrx.dk/download/install-ubuntu

They are intended for people who want to run gqrx on Ubuntu but
haven't got a clue about gnuradio, drivers, udev rules etc... They are
clearly incompatible with building any of the components from source.

Alex
Alexandru Csete
2017-02-13 21:38:47 UTC
Permalink
İts ubuntu 16.10 and it was working smoothly till gqrx install. Gqrx website
asked first remove some previous packs then I can not get signal. just 1 max
signal then its stops. Help?
The gqrx website uses PPAs to provide packages that are newer than the
ones that come with Ubuntu. The hackrf library has not been upgraded
to this latest release and is therefore incompatible with your device
if it has firmware 2017.02.1.

Not sure how handle this upgrade properly... Would have been nice if
libhackrf could handle both old and new firmwares :-(

Alex
Dominic Spill
2017-02-13 21:46:20 UTC
Permalink
Post by Alexandru Csete
The gqrx website uses PPAs to provide packages that are newer than the
ones that come with Ubuntu. The hackrf library has not been upgraded
to this latest release and is therefore incompatible with your device
if it has firmware 2017.02.1.
Not sure how handle this upgrade properly... Would have been nice if
libhackrf could handle both old and new firmwares :-(
Libhackrf can handle both old and new firmware. I've tested this
hackrf_transfer with every combination of 2015.07.2 and 2017.02.1 libhackrf
and firmware.

The only requirement for upgrading firmware with newer versions of
libhackrf is to use newer features.
Alexandru Csete
2017-02-13 21:50:54 UTC
Permalink
Post by Dominic Spill
Post by Alexandru Csete
The gqrx website uses PPAs to provide packages that are newer than the
ones that come with Ubuntu. The hackrf library has not been upgraded
to this latest release and is therefore incompatible with your device
if it has firmware 2017.02.1.
Not sure how handle this upgrade properly... Would have been nice if
libhackrf could handle both old and new firmwares :-(
Libhackrf can handle both old and new firmware. I've tested this
hackrf_transfer with every combination of 2015.07.2 and 2017.02.1 libhackrf
and firmware.
The only requirement for upgrading firmware with newer versions of libhackrf
is to use newer features.
Ah ok, that's cool. I must have misread it. I am going to upgrade
hackrf in our PPA and it should then work fine.

Alex
Dominic Spill
2017-02-13 22:06:40 UTC
Permalink
Post by Alexandru Csete
Post by Dominic Spill
Post by Alexandru Csete
The gqrx website uses PPAs to provide packages that are newer than the
ones that come with Ubuntu. The hackrf library has not been upgraded
to this latest release and is therefore incompatible with your device
if it has firmware 2017.02.1.
Not sure how handle this upgrade properly... Would have been nice if
libhackrf could handle both old and new firmwares :-(
Libhackrf can handle both old and new firmware. I've tested this
hackrf_transfer with every combination of 2015.07.2 and 2017.02.1 libhackrf
and firmware.
The only requirement for upgrading firmware with newer versions of libhackrf
is to use newer features.
Ah ok, that's cool. I must have misread it. I am going to upgrade
hackrf in our PPA and it should then work fine.
That would be great, thank you.

Rustu, once hackrf has been updated in the gqrx repository, please try
updating and try the hackrf_transfer command again.

Thanks,
Dominic
Rustu Yucel
2017-02-14 04:42:11 UTC
Permalink
Hi, thanks for replies, I checked it on windows firstly on sdr# and not working (before firmware update it was ok) I think Mr. Ossmann open a bug report on this issue, now on another machine (kali linux) I tested it hackrf_info gives undefined symbol lookup hackrf_library version but gnuradio and hackrf_transfer works properly! What should I do? gqrx by the way gqrx.dk/dıwnload/install-ubuntu link followed. Maybe I shouldnt run volk_profile?

Sent from my iPhone
Post by Alexandru Csete
The gqrx website uses PPAs to provide packages that are newer than the
ones that come with Ubuntu. The hackrf library has not been upgraded
to this latest release and is therefore incompatible with your device
if it has firmware 2017.02.1.
Not sure how handle this upgrade properly... Would have been nice if
libhackrf could handle both old and new firmwares :-(
Libhackrf can handle both old and new firmware. I've tested this hackrf_transfer with every combination of 2015.07.2 and 2017.02.1 libhackrf and firmware.
The only requirement for upgrading firmware with newer versions of libhackrf is to use newer features.
Rustu Yucel
2017-02-14 19:55:17 UTC
Permalink
UPDATE: I think I found the problem. My USB port (which is before update,
working properly now doesnt support it anymore). I changed to another USB
port and everything fine.
Motherboard is -BIOS-
Date : 02/23/2016
Vendor : American Megatrends Inc. (www.ami.com)
Version : 2.50
-Board-
Name : H110M PRO-VD (MS-7996)
Vendor : MSI

I dont know if it helps somebody else too. Thanks for all replies and
support
Post by Rustu Yucel
Hi, thanks for replies, I checked it on windows firstly on sdr# and not
working (before firmware update it was ok) I think Mr. Ossmann open a bug
report on this issue, now on another machine (kali linux) I tested it
hackrf_info gives undefined symbol lookup hackrf_library version but
gnuradio and hackrf_transfer works properly! What should I do? gqrx by the
way gqrx.dk/dıwnload/install-ubuntu link followed. Maybe I shouldnt run
volk_profile?
Sent from my iPhone
Post by Alexandru Csete
The gqrx website uses PPAs to provide packages that are newer than the
ones that come with Ubuntu. The hackrf library has not been upgraded
to this latest release and is therefore incompatible with your device
if it has firmware 2017.02.1.
Not sure how handle this upgrade properly... Would have been nice if
libhackrf could handle both old and new firmwares :-(
Libhackrf can handle both old and new firmware. I've tested this
hackrf_transfer with every combination of 2015.07.2 and 2017.02.1 libhackrf
and firmware.
The only requirement for upgrading firmware with newer versions of
libhackrf is to use newer features.
Loading...