Skip to content

Update hackrf_transfer for new libhackrf / radio API's (4/n) - #1787

Draft
antoinevg wants to merge 9 commits into
mainfrom
antoinevg/radio-hackrf-transfer
Draft

Update hackrf_transfer for new libhackrf / radio API's (4/n)#1787
antoinevg wants to merge 9 commits into
mainfrom
antoinevg/radio-hackrf-transfer

Conversation

@antoinevg

@antoinevg antoinevg commented Jun 23, 2026

Copy link
Copy Markdown
Member

This PR depends on #1772


This PR adds support to hackrf_transfer for:

  1. Specifying fractional sample rates and frequencies:

    hackrf_transfer -c 127 -s 5000000.123 -f 510000000.567

  2. Specifying sample rates and frequencies:

    hackrf_transfer -c 127 -s 5.000000123e6 -f 5.1000567e6

  3. Negative and fractional values for crystal_correct_ppm:

    hackrf_transfer -c 127 -s 10e6 -f 100e6 -C -1.5

TODO

  • add support for strtod-style notation parsing to hackrf_str_to_fp64
  • add support for negative ppm values
  • add support for fractional ppm values

@antoinevg
antoinevg force-pushed the antoinevg/radio-hackrf-transfer branch 6 times, most recently from d922d47 to f436cb0 Compare June 30, 2026 12:49
@antoinevg
antoinevg force-pushed the antoinevg/radio-hackrf-transfer branch from f436cb0 to ff7d055 Compare July 1, 2026 14:14
mildsunrise added a commit to mildsunrise/hackrf that referenced this pull request Jul 1, 2026
now that we have hardware-enforced sample rate limits, I think it'd be nice to align the checks done in hackrf_transfer with those. if worried about expanding these limits breaking older firmware, I can add an USB API check for >= 1.11.

related to greatscottgadgets#1787 but seems to have no conflicts, feel free to close if you want to add that patch there :)
@antoinevg
antoinevg force-pushed the antoinevg/radio-hackrf-transfer branch 5 times, most recently from 12c2e10 to e9e3beb Compare July 7, 2026 13:56
@antoinevg
antoinevg force-pushed the antoinevg/radio-hackrf-transfer branch 4 times, most recently from e0de064 to 4967f14 Compare July 24, 2026 07:50
@antoinevg
antoinevg force-pushed the antoinevg/radio-hackrf-transfer branch from 4967f14 to e109308 Compare July 28, 2026 08:05
@antoinevg
antoinevg force-pushed the antoinevg/radio-hackrf-transfer branch 2 times, most recently from 3a31b64 to e387761 Compare August 18, 2026 07:47
@antoinevg
antoinevg force-pushed the antoinevg/radio-hackrf-transfer branch from e387761 to e455d90 Compare August 21, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant