You might be able to use
iSerial
See
lsusb -v
Or use
hackrf_info
and look for the "Serial Number".
If you have multiply devices, then in grc or gqrx, use the last last hex
number in the serial number without the hex identifier.
For instance, for
Serial Number: 0x00000000 0x00000000 0x589c64c8 0x2345345f
you would you use
hackrf=2345345f
-- Cinaed
On 10/19/2016 10:25 AM, Bill Hill wrote:
> Hi, I'm getting weirdness trying to count the HackRFs:
>
> #include <stdio.h>
> #include <libhackrf/hackrf.h>
>
> int main ( )
> {
> hackrf_init() ;
> hackrf_device_list_t* hrfl ;
> hrfl = hackrf_device_list() ;
> printf ( "Found %i HackRF(s).\n", hrfl->usb_devicecount ) ;
> return 0 ;
> }
>
> If I run this on MacOS 10.10 I get:
>
> Found 8 HackRF(s).
>
> But on Linux Mint I get:
>
> Found 7 HackRF(s).
>
> In both cases this is with nothing plugged in.
>
> Is the hrfl->usb_devicecount *all* the USB devices, not just the HackRFs?
>
> If so, how do I iterate just the HackRFs?
>
> Thanks.
>
> Bill
>
>
> --
> Red to red, black to black, switch it on, but stand well back.
>
>
>
> _______________________________________________
> HackRF-dev mailing list
> [email protected]
> https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
>
_______________________________________________
HackRF-dev mailing list
[email protected]
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev