Skip to content

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

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

Update hackrf_transfer for new libhackrf / radio API's (4/n)#1787
antoinevg wants to merge 8 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 specifying fractional sample rates and frequencies:

`hackrf_transfer -c 127 -s 5000000.123 -f 510000000.567`

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 4 times, most recently from 327ad5c to c069dc9 Compare June 26, 2026 15:01
@antoinevg antoinevg force-pushed the antoinevg/radio-hackrf-transfer branch 2 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 from ff7d055 to 2c863b1 Compare July 6, 2026 12:33
@antoinevg antoinevg force-pushed the antoinevg/radio-hackrf-transfer branch from 2c863b1 to 11dac44 Compare July 6, 2026 12:35
@antoinevg antoinevg force-pushed the antoinevg/radio-hackrf-transfer branch from 11dac44 to 22c5314 Compare July 6, 2026 12:38
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