Michael Ossmann
ae71cb5b7a
Merge pull request #1277 from grvvy/debug_device_fix
...
change the device long option to required in hackrf_debug
2023-02-14 20:15:53 -05:00
grvvy
fe86f005f6
change the device long option to required in hackrf_debug
2023-02-08 12:18:27 -07:00
Michael Ossmann
00253b02e1
set version to 2023.01.1+
2023-02-08 14:03:06 -05:00
Michael Ossmann
d9ebb089a5
set version to 2023.01.1
2023-02-01 00:22:29 -05:00
Michael Ossmann
6f26b74e90
Merge pull request #1253 from Sasszem/memory-waste
...
Fix memory waste in allocated_transfers
2023-01-05 15:34:27 -05:00
Mike Walters
c2b3052c78
hackrf_spiflash: implement compatibility checking using new firmware info struct
2023-01-05 15:18:52 +00:00
Mike Walters
f426ac2174
hackrf_spiflash: use defines for compatibility_check return value
2023-01-05 15:13:06 +00:00
Mike Walters
5084a84a3d
libhackrf: add function to lookup platform ID from board ID
2023-01-05 15:13:06 +00:00
Sasszem
b52631b6f5
Fix memory waste in allocated_transfers
...
Did a search for allocations & all others were fine
2023-01-04 22:09:49 +01:00
Michael Ossmann
3d39660be1
Merge pull request #1237 from greatscottgadgets/tuning
...
restrict IF to 2170-2740 MHz
2022-12-23 11:56:38 -05:00
Michael Ossmann
3d687a20fd
increase forceable IF range to 2000-3000 MHz
2022-12-23 06:06:22 -05:00
Michael Ossmann
173612ac77
add --led option to hackrf_debug
...
and corresponding changes to libhackrf and firmware
2022-12-18 07:22:17 -05:00
Michael Ossmann
86c1d8ce6e
restrict IF to 2170-2740 MHz
2022-12-09 09:12:37 -05:00
Michael Ossmann
5acd0cb99e
set version to 2022.09.1+
2022-10-24 15:14:00 -04:00
Michael Ossmann
b6acd66cfe
set version to 2022.09.1
...
Starting with this release we will no longer use "unknown" as the
default software version string used in cases where the version cannot
be determined from context. Instead we commit the release version string
to git so that any software built from the tagged commit will have the
appropriate release version string. After the release we will commit a
post-release version string as the new default.
We will continue to use the commit hash as version string when the
software is built inside a git repository.
2022-09-29 05:20:39 -04:00
Michael Ossmann
219abf7a4c
Merge pull request #1180 from martinling/fix-transfer-locking
...
Improve transfer locking
2022-09-28 05:06:07 -04:00
Martin Ling
f7c219e30f
Merge all_finished_lock with transfer_lock.
2022-09-26 14:01:16 +01:00
Martin Ling
367ce3d7b3
Hold transfer lock during initial submissions in prepare_transfers.
2022-09-26 14:01:15 +01:00
Martin Ling
559a45bd6b
Extend scope of transfer_lock in callback.
2022-09-26 13:42:22 +01:00
Michael Ossmann
0e8b941897
hackrf_transfer: fix function name in debug output
2022-09-24 14:23:29 -04:00
Michael Ossmann
06b9d7bee0
Clean up source code copyright notices.
2022-09-23 14:46:52 -04:00
Michael Ossmann
3d378466fb
hackrf_operacake: clean up text output
2022-09-23 14:45:34 -04:00
Martin Ling
2e73a4f2db
If TX callback sets valid_length to 0, treat as end of data.
2022-09-23 12:46:49 +01:00
Michael Ossmann
45504ff397
Don't repeat file that can't advance its position.
...
This avoids a confusing condition when hackrf_transfer is reading from
stdin with -R in which it does not repeat previous data but repeatedly
restarts reading new data after the user types Ctrl-D to indicate EOF.
The -R option should repeat previous data or should do nothing if the
input file cannot be rewound.
2022-09-23 06:48:01 -04:00
Michael Ossmann
8fbaf1336c
Improve handling of file read results.
2022-09-23 06:47:54 -04:00
Martin Ling
db33e1bdaf
Revert rename of byte_count now that we only have one count.
2022-09-23 05:19:29 -04:00
Martin Ling
0becbc6b4a
Indicate success or failure to flush callback.
2022-09-23 05:19:29 -04:00
Martin Ling
4810d1f992
Fold transfer_finished function into libusb transfer callback.
2022-09-23 05:19:29 -04:00
Martin Ling
1484b78c05
Expand lock scope in libusb transfer callback.
...
This is required since cancel_transfers will also cancel the flush.
2022-09-23 05:19:29 -04:00
Martin Ling
770416f122
Cancel flush transfer if shutting down.
2022-09-23 05:19:29 -04:00
Martin Ling
c089bb0b88
Fix handling of EOF and error conditions after fread.
2022-09-23 05:19:29 -04:00
Martin Ling
eae7049284
Fix empty report when TX ends soon after the last report.
2022-09-23 05:19:29 -04:00
Martin Ling
14093fe73b
Provide a callback for completion of a TX transfer.
2022-09-23 05:19:29 -04:00
Martin Ling
2448796e35
Handle failures in fread from TX callback.
2022-09-23 05:19:29 -04:00
Martin Ling
cb8fc333aa
Fix inaccurate error message when TX completes near a 1 second boundary.
2022-09-23 05:19:29 -04:00
Martin Ling
98faa5429f
Fix inaccurate statistics in hackrf_transfer.
2022-09-23 05:19:29 -04:00
Martin Ling
b872647e97
Provide a callback for TX flush, rather than a wait function.
2022-09-23 05:19:29 -04:00
Michael Ossmann
1167f49b7f
hackrf_transfer: refer to triggers as "triggers"
2022-09-21 10:37:40 -04:00
Michael Ossmann
8e83506da1
Merge pull request #1166 from martinling/tx-disconnect-hang
...
Fix hang in TX when a libusb error occurs.
2022-09-19 21:28:49 -04:00
Martin Ling
e53b9d5717
Fix hang in TX when a libusb error occurs.
...
Where our callback is called with a status other than COMPLETED,
something abnormal has happened and we no longer want to either
submit further transfers or await a flush. So clear the streaming
and flush flags, and proceed to transfer_finished.
Do the same in the case where libusb_submit_transfer fails when
called to submit the flush transfer.
2022-09-20 02:07:21 +01:00
Michael Ossmann
471c5bc5de
libhackrf: #define outdated board IDs
2022-09-19 19:55:33 -04:00
Michael Ossmann
f4202d1163
hackrf_transfer: Don't skip preload stats in RX
...
Fixes a bug introduced in 8a9af7a: Statistics skipped for initial
buffers not only when preloaded in TX mode but also in RX mode with no
preloading.
The total bytes transferred may appear inflated in RX mode when
receiving a small number of samples with -n, but the stats represent
data transferred over USB, some of which may have been discarded by the
host.
2022-09-18 13:27:51 -04:00
Michael Ossmann
82ecfce414
hackrf_transfer: simplify hardware sync mode logic
...
The -H option now requires no argument.
2022-09-18 05:49:03 -04:00
Michael Ossmann
22635bf07d
libhackrf: update hackrf_transfer struct comment
2022-09-18 05:13:25 -04:00
Michael Ossmann
9181cbe049
hackrf_transfer: send signal to own PID
...
Instead of sending a signal to the process group, get our own process ID
and send the signal to it. This fixes a bug that prevented termination
when called from a script.
2022-09-18 05:07:09 -04:00
Martin Ling
6ab17209d7
Disable flush when cancelling transfers.
2022-09-16 15:55:20 +01:00
Martin Ling
55fdddd81e
Merge remote-tracking branch 'origin/master' into tx-transfer-sizing
2022-09-15 15:32:20 +01:00
Martin Ling
1b166a5b05
Pad the last data in a transmission to the next 512 byte boundary.
2022-09-15 15:27:53 +01:00
Martin Ling
69823397b1
Submit flush transfer as soon as end of data is reached.
2022-09-15 15:12:41 +01:00
Michael Ossmann
2b1aa545f8
Merge pull request #1157 from martinling/standardise-dbfs
...
Standardise dBFS level
2022-09-15 04:59:45 -04:00