|
|
pirms 4 dienas | |
|---|---|---|
| cmd/sdrd | pirms 4 dienas | |
| internal | pirms 4 dienas | |
| web | pirms 4 dienas | |
| .gitignore | pirms 4 dienas | |
| README.md | pirms 4 dienas | |
| config.yaml | pirms 4 dienas | |
| go.mod | pirms 4 dienas | |
| go.sum | pirms 4 dienas | |
Go-based SDRplay RSP1b live spectrum + waterfall visualizer with a minimal event recorder.
data/events.jsonl)# From repo root
go run ./cmd/sdrd --mock
Open http://localhost:8080.
This project uses the SDRplay API via cgo (sdrplay_api.h). Ensure the SDRplay API is installed.
$env:CGO_CFLAGS='-IC:\Program Files\SDRplay\API\inc'
$env:CGO_LDFLAGS='-LC:\Program Files\SDRplay\API\x64 -lsdrplay_api'
go build -tags sdrplay ./cmd/sdrd
.\sdrd.exe -config config.yaml
export CGO_CFLAGS='-I/opt/sdrplay_api/include'
export CGO_LDFLAGS='-L/opt/sdrplay_api/lib -lsdrplay_api'
go build -tags sdrplay ./cmd/sdrd
./cmd/sdrd/sdrd -config config.yaml
Edit config.yaml:
bands: list of band rangescenter_hz: center frequencysample_rate: sample ratefft_size: FFT sizegain_db: device gaindetector.threshold_db: power threshold in dBdetector.min_duration_ms, detector.hold_ms: debounce/mergeThe UI is served from web/ and connects to /ws for spectrum frames.
go test ./...
sdrplay support not built, rebuild with -tags sdrplay.CGO_CFLAGS and CGO_LDFLAGS point to the API headers and library.--mock to run without hardware.