2727 Commits

Author SHA1 Message Date
straithe
23a092f444 Update Opera Cake docs 2022-10-20 18:30:01 -04:00
Jacob Graves
b3f7a11a58 Merge pull request #1200 from grvvy/dual_device_patch
CI: add serial numbers for both connected HackRFs
2022-10-17 12:53:54 -06:00
grvvy
5027e27497 CI: add serial numbers for both connected HackRFs 2022-10-17 12:41:52 -06:00
Jacob Graves
2b3e2e52cb Merge pull request #1198 from grvvy/test_device_path_fix
CI: remove the no longer needed device path from dfu-util
2022-10-17 12:29:00 -06:00
grvvy
c5d81be1fe CI: remove the no longer needed device path from dfu-util 2022-10-12 12:20:23 -06:00
Michael Ossmann
e3e406491d Merge pull request #1191 from greatscottgadgets/release
set version to 2022.09.1
2022-09-29 07:12:06 -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
0afc9857e4 Update some outdated technical docs (#1190)
* update outdated libhackrf documentation

* update outdated hackrf_sweep documentation
2022-09-28 18:16:39 -04:00
Michael Ossmann
dfb6611b08 Merge pull request #1189 from straithe/addHackRFPictureToDocumentation
Add picture of HackRF to documentation
2022-09-28 05:12:13 -04:00
Michael Ossmann
efebd73e77 Merge pull request #1188 from straithe/fixDocumentationIssueTemplateTypo
Fix Documentation Issue Template Typo
2022-09-28 05:06:45 -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
straithe
58e65517a5 Add picture of HackRF to documentation 2022-09-28 01:34:11 -04:00
straithe
7f15fc5e0b Fix Documentation Issue Template Typo 2022-09-28 01:09:34 -04:00
Michael Ossmann
0d9b04e41b Merge pull request #1183 from straithe/addDocumentationRequestIssueTemplate
Add documentation request issue template
2022-09-27 13:30:36 -04:00
Michael Ossmann
681ebc46ad Merge pull request #1182 from straithe/removeDocsRetiredContentSection
remove retired content and move jawbreaker content
2022-09-27 13:30:03 -04:00
Michael Ossmann
a442450e30 Merge pull request #1179 from straithe/updateOperaCakeDocumentation
Add picture of Opera Cake to documentation
2022-09-27 13:24:11 -04:00
Michael Ossmann
0b17762c3a Merge pull request #1178 from straithe/fixReadMeTypo
Fix typos in Readme file
2022-09-27 13:21:05 -04:00
Michael Ossmann
7243db7d68 Merge pull request #1181 from greatscottgadgets/cleanup
pre-release clean-up and platform detection improvement
2022-09-27 13:19:52 -04:00
Michael Ossmann
0c85e10195 Merge pull request #1184 from martinling/flush-on-setup
Flush queues on control endpoint when a new SETUP is received.
2022-09-27 13:19:27 -04:00
Martin Ling
1db39c0e61 Flush queues on control endpoint when a new SETUP is received.
On macOS 12.6 running libusb 1.0.26, the host was seen to sometimes
make an incomplete ClearFeature(ENDPOINT_HALT) request when
ClearPipeStallBothEnds was called from libusb_cancel_transfer.

The host would send the SETUP packet, and the firmware would
call usb_transfer_schedule_ack to acknowledge the upcoming IN
token. However, the host would then not send the IN token,
proceeding directly to the next SETUP.

Since an empty transfer was queued to schedule the ACK, the
firmware would leak one transfer from the free_transfers list.

After a few iterations of this, the firmware would run out of
free transfers and the next request would hang waiting for one.

Fix this by flushing the transfer queues for the control endpoint
when a new SETUP is received, since that token implicitly cancels
any previously ongoing request.
2022-09-27 09:45:43 +01:00
straithe
44244f525d Add documentation request issue template 2022-09-27 03:12:36 -04:00
straithe
12b9d4cdc9 remove retired content and move jawbreakercontent 2022-09-27 02:53:35 -04:00
Michael Ossmann
1f9f597ea8 firmware: use python3 interpreter, not python 2022-09-26 16:46:04 -04:00
Michael Ossmann
f3d10dcc62 firmware: improve platform detection
Slow down the detection of pull-up and pull-down resistors to make
detection more reliable.
2022-09-26 16:44:38 -04:00
Michael Ossmann
b026c07000 firmware: fix duration of delay_us_at_mhz() 2022-09-26 16:43:43 -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
straithe
3678bfa03e Add picture of Opera Cake to documentation 2022-09-26 00:24:42 -04:00
straithe
b4e2cd2e42 Fix typos in Readme file 2022-09-25 23:43:38 -04:00
Michael Ossmann
0e8b941897 hackrf_transfer: fix function name in debug output 2022-09-24 14:23:29 -04:00
Michael Ossmann
04614c616a blinky: support platform detection 2022-09-23 15:08:22 -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
Michael Ossmann
caf0cfde87 Merge pull request #1176 from straithe/updateReadMeDocumentation
Update Readme to have docs PDF build instructions
2022-09-23 14:22:02 -04:00
straithe
c1fb7a72a8 update pdf building documentation 2022-09-23 13:53:10 -04:00
straithe
2e4a2a9e30 Update Readme to have docs PDF build instructions 2022-09-23 13:06:42 -04:00
Michael Ossmann
5b98cf92d8 Merge pull request #1168 from martinling/flush-callback
Provide a callback for TX flush, rather than a wait function.
2022-09-23 11:12:37 -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