Feature request: T/R switching (real time half duplex) via gr-osmosdr

Open
#195 34 comments 0 reactions 1 assignee View on GitHub

@martinling is already working on this.

Since May 1, 2022.

Assessment

This issue has not been assessed yet.

Description

enhancement software

This is fairly off-topic as it relates entirely to gr-osmosdr code and not libhackrf code, but I haven't seen any active issue tracker or other forum actually used for gr-osmosdr, and I'm hoping that there is interest from this community (precedent being issue #87).

I would like to be able to use the HackRF in a half-duplex fashion from GNU Radio. Unfortunately, as currently implemented, TX or RX operations can only be stopped by destroying the gr-osmosdr sink or source object. This makes it very tricky (but possible) to perform the switch (making sure that the lifetimes of the sink and source do not overlap), and makes it impossible to query the capabilities of the device (sample rates, filter bandwidths, gains) without entering TX mode.

I would like to be able to have both source and sink objects around, and set the hardware to TX mode only on request. The request could be explicit, or implicit based on the availability of samples to transmit, or on the running state of the flowgraph containing the sink.

Dominant language
C
Stars
8.1k
Forks
1.7k
Avg merge
15d 7h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from greatscottgadgets/hackrf

All issues in greatscottgadgets/hackrf

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.