Skip to content

20260704 merge upstream 30hours - #47

Open
Purple10101 wants to merge 19 commits into
mainfrom
20260704-merge-upstream-30hours
Open

20260704 merge upstream 30hours#47
Purple10101 wants to merge 19 commits into
mainfrom
20260704-merge-upstream-30hours

Conversation

@Purple10101

Copy link
Copy Markdown

Merges upstream 30hours/blah2 (upstream/main) into blah2-arm, reconciling ~19 upstream commits against this fork's ARM-specific divergence (dropped USRP/HackRF/Kraken support, NEON-optimized FFTW build, per-tuner RSPduo gain reduction, retina web UI rebrand). Despite the commit count, the net file diff is small: 3 files changed, 81 insertions, 53 deletions.

Changes

src/capture/rspduo/RspDuo.cpp (+6 lines)

Adds an explicit re-assignment of deviceParams->rxChannelA/B->tunerParams.gain.gRdB and .LNAstate immediately before the sdrplay_api_Update() calls in RspDuo::process(), ported from upstream. This guards against sdrplay_api_Init() having reset/overwritten those struct fields before the explicit hardware gain-push call — closes a previously-unverified gap in blah2-arm's per-tuner gain reduction feature (added 2026-06-16), which was itself ported from this same upstream code without this re-assignment.

src/blah2.cpp (127 lines touched, 3 changes bundled)

  • Socket refactor for graceful exit (upstream, 31d527e): sockets become std::unique_ptr<Socket>, wrapped in try/catch. Socket + FFTW-thread setup moved before SDR device creation. If the downstream API/web server isn't reachable, blah2 now fails fast with a clear stderr message and exit(1) instead of crashing uncaught or hanging after already spinning up the SDR hardware. sleep(5)sleep(2) before the connection attempt.
  • Detection-saving activated (upstream, a3928a2): adds detection->save(...), gated by a saveDetection flag read from config.yml's save.detection key (mirrors existing map-saving). blah2-arm's config.yml already had save.detection: true sitting dormant/unread — this merge wires it up, so detections will now actually write to disk. Follow-up ticket filed to add UI/config support for this in retina-gui, which currently has no way to view or toggle this setting.
  • Cosmetic: std::endl"\n", a couple of "setup" → "set up" typo fixes.

Dockerfile (-1 line)

Stray blank line removed, left over from resolving the USRP-vs-ARM-native-build conflict. No functional change.

Conflict resolution notes

  • USRP/HackRF/Kraken support: upstream still carries these; blah2-arm intentionally dropped them (CMakeLists.txt, Dockerfile, Capture.cpp) when going ARM/SDRplay-only. Resolved by keeping blah2-arm's RSPduo-only scope throughout.
  • config/config.yml: reverted to be byte-identical to main — no config default changes are part of this PR.
  • html/ vs web/html/: upstream's changes to the old html/ path (a cosmetic orange-background tweak) were dropped; blah2-arm's web/html/ retina rebrand already supersedes it.
  • New file contrib/raspberrypi/Dockerfile from upstream (a community-contributed generic RPi build) was not carried in — it reintroduces UHD/RTL-SDR support and has no ARM/NEON optimization, and isn't referenced by any compose file.

30hours and others added 19 commits March 4, 2025 12:43
another uhd update.. 

I have tried without the: =4.9.0.0-0ubuntu1~jammy2  
and that compiled fine.. I think apt install can work out a suitable version without our help of being specific?
 * Wraps sockets in pointers for try/catch
 * Moves socket init up to fail early if web app isn't running
Graceful close if web server isn't running
Update UHD package versions in Dockerfile
Thanks to Jehan from Discord for sharing this
Add Dockerfile for Raspberry Pi environment setup
…ream-30hours

# Conflicts:
#	CMakeLists.txt
#	Dockerfile
#	config/config.yml
#	html/controller/index.html
#	html/index.html
#	html/lib/blah2.css
#	src/blah2.cpp
#	src/capture/Capture.cpp
#	src/capture/rspduo/RspDuo.cpp
#	src/capture/rspduo/RspDuo.h
#	web/html/display/detection/delay-doppler/index.html
#	web/html/display/detection/delay/index.html
#	web/html/display/detection/doppler/index.html
#	web/html/display/map/index.html
#	web/html/display/maxhold/index.html
#	web/html/display/spectrum/index.html
#	web/html/display/timing/index.html
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.

3 participants