[Hackrf-dev] Troubles with multiple HackRFs

Cinaed Simson cinaed.simson at gmail.com
Thu May 4 22:48:04 EDT 2017


On 05/03/2017 09:56 AM, Fernando wrote:
> This problem  (hackrf_open() failed: HACKRF_ERROR_LIBUSB (-1000))  shows
> when you have no rights to access the HW, it is necessary to set udev
> rules as here ( https://github.com/mossmann/hackrf/wiki/FAQ ) but if you
> are using one hackrf that is not your problem.

I'm using 2 HackRF's and the udev rules are installed.


> I have received that error too when using two hackrf with osmocon
> source/sink, one is ercogniced an the other isn't  (using hackrf=0 and
> hackrf=1), but using the serialnumber
> (hackrf=000000000000000071c469c825671743)
> 
> hackrf_info returns (now just one hack plugged)
> 
> andromeda:/etc/udev/rules.d # hackrf_info
> hackrf_info version: 2017.02.1
> libhackrf version: 2017.02.1 (0.5)
> Found HackRF
> Index: 0
> Serial number: 000000000000000071c469c825671743
> Board ID Number: 2 (HackRF One)
> Firmware Version: 2017.02.1 (API:1.02)
> Part ID Number: 0xa000cb3c 0x00494758
> andromeda:/etc/udev/rules.d #
> 
> 
> So, yes, it works with FW 2017.02.1.

The problem arises when you have 2 HackRF's plugged in, and one is being
use and the other one isn't.

If hackrf_info encounters the device being used first, it exits with an
error and it doesn't query the other device.

If hackrf_info encounters the device not being used first, it prints out
the info for the device, moves on to the second device and then
generates the normal busy error.

> 
> regards
> 
> 
> El 03/05/17 a las 16:57, Pierre AVITAL escribió:
>> Hello,
>>
>> I have been trying to use 2 HackRFs to try to get a full duplex
>> working as well as to test performance requirements for multiple
>> HackRF handling.
>>
>> But I can't get both to function at the same time, as it appears
>> nothing HackRF related will work once one of them is in use.
>> As far as I've tested, once a hackrf is used in any way (my method was
>> using osmosdr's osmocom_fft), any use of libhackrf (even hackrf_info)
>> will result in the following :
>> hackrf_open() failed: HACKRF_ERROR_LIBUSB (-1000)
>>
>> Using dmesg, I've found that both hackrf's have the same serial, but
>> that being 0, I doubt any hackrfs have different serials, so I don't
>> think that's the problem.
>> I've tried reinstalling libusb and libhackrf to no avail.
>>
>> Any ideas ?
>>
>> Thanks in advance for your help,
>> Pierre.
>>
>>
>> _______________________________________________
>> HackRF-dev mailing list
>> HackRF-dev at greatscottgadgets.com
>> https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
> 
> 
> 
> 
> _______________________________________________
> HackRF-dev mailing list
> HackRF-dev at greatscottgadgets.com
> https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
> 



More information about the HackRF-dev mailing list