Project

General

Profile

Actions

Bug #4325

open

can't open hackrf_sink with device index

Added by mprt over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
12/13/2019
Due date:
% Done:

0%

Spec Reference:

Description

When using a hackrf_source with gr-osmosdr, I can select the device by its index (usually 0) instead of the serial number.
Opening a hackrf_sink this way fails. ("RuntimeError: Failed to open HackRF device (-5) HackRF not found")
Using hackrf_sink only works when supplying the full serial number.

There is a check in hackrf_source_c.cc#n152 that detects when a device is selected by index instead of the serial number.
This check is missing in hackrf_sink_c.cc.

cheers,
Matthias

No data to display

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)