The community websdr-plus-github can be found here: https://github.com/ny4qphil/PhantomSDR-Plus ..it is compatible with the normal version, but enhanced.

Phantom SDR Plus & RX888 - setup

Started by Martin G8JNJ, Sep 23, 2024, 10:55 PM

Previous topic - Next topic

Martin G8JNJ


Do you mean start-rx888mk2.sh

#!/bin/bash

killall -s 9 spectrumserver
killall -s 9 rx888_stream

RUST_BACKTRACE=1

rx888_stream -f ./rx888_stream/SDDC_FX3.img -s 60000000 -g 60 -m low -d --pga -o - | build/spectrumserver --config config-rx888mk2.toml > /dev/null 2>&1 &

exit


 & config-rx888mk2.toml



[server]
port=8090 # Server port
html_root="frontend/dist/" # HTML files to be hosted
otherusers=1 # Send where other users are listening, 0 to disable
threads=1



[websdr]
register_online=false # If the SDR should be registered on https://sdr-list.xyz then put it to true
name="ChangeThis" # Name that is shown on https://sdr-list.xyz
antenna="ChangeThis" # Antenna that is shown on https://sdr-list.xyz
grid_locator="ChangeThis" # 4 or 6 length Grid Locatlr shown on https://sdr-list.xyz and for the Distance of FT8 Signals
hostname="" # If you use ddns or something to host with a domain enter it here for https://sdr-list.xyz

[limits]
audio=100
waterfall=100
events=100

[input]
sps=64000000 # Input Sample Rate
fft_size=4194304 # FFT bins
brightness_offset=0 # Waterfall brightness offset. Reduce to negative if you see black regions in the waterfall
fft_threads=10 # FFT threads
frequency=0 # Baseband frequency
signal="real" # real or iq
accelerator="none" # Accelerator: none, cuda, opencl
audio_sps=48000 # Audio Sample Rate
audio_compression="flac" # flac or opus
waterfall_size=2048
waterfall_compression="zstd" # zstd or av1
smeter_offset=0

[input.driver]
name="stdin" # Driver name
format="s16" # Sample format: u8, s8, u16, s16, u32, s32, f32, f64

[input.defaults]
frequency=5505000 # Default frequency to show user
modulation="USB" # Default modulation


I note that Shannon Volmet on 5450kHz USB is actually appearing on 9554.22kHz, so I assume the sample rate or similar is incorrect, and I'm seeing aliases ?

I tried changing sample rates, but I either get errors and no webservice, or stuttering audio


Regards,

Martin

Quote from: magicint1337 on Sep 25, 2024, 03:33 PMpost your command and config file please

magicint1337

try this

[server]
port=8090 # Server port
html_root="frontend/dist/" # HTML files to be hosted
otherusers=1 # Send where other users are listening, 0 to disable
threads=1



[websdr]
register_online=false # If the SDR should be registered on https://sdr-list.xyz then put it to true
name="ChangeThis" # Name that is shown on https://sdr-list.xyz
antenna="ChangeThis" # Antenna that is shown on https://sdr-list.xyz
grid_locator="ChangeThis" # 4 or 6 length Grid Locatlr shown on https://sdr-list.xyz and for the Distance of FT8 Signals
hostname="" # If you use ddns or something to host with a domain enter it here for https://sdr-list.xyz

[limits]
audio=100
waterfall=100
events=100

[input]
sps=60000000 # Input Sample Rate
fft_size=4194304 # FFT bins
brightness_offset=0 # Waterfall brightness offset. Reduce to negative if you see black regions in the waterfall
fft_threads=10 # FFT threads
frequency=0 # Baseband frequency
signal="real" # real or iq
accelerator="none" # Accelerator: none, cuda, opencl
audio_sps=48000 # Audio Sample Rate
audio_compression="flac" # flac or opus
waterfall_size=2048
waterfall_compression="zstd" # zstd or av1
smeter_offset=0

[input.driver]
name="stdin" # Driver name
format="s16" # Sample format: u8, s8, u16, s16, u32, s32, f32, f64

[input.defaults]
frequency=5505000 # Default frequency to show user
modulation="USB" # Default modulation
Maintainer and Developer of PhantomSDR-Plus

magicint1337

Because the sample rate otherwise wont fit the command, if you change it in the command you also need to do it in the config as otherwise it stutters or misaligns.
Maintainer and Developer of PhantomSDR-Plus

Bas ON5HB

Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

Martin G8JNJ


magicint1337

Yea, it will still run with 48mhz easily on the cpu tho.
Maintainer and Developer of PhantomSDR-Plus

Martin G8JNJ

So, OpenCL still doesn't seem to want to run, despite trying all the methods recommended in previous posts and link, and it saying that it is, it just pretends to be running.

-------------------


root@phantom:/home/wessex/PhantomSDR-Plus# clinfo -l
Platform #0: Intel(R) OpenCL Graphics
 `-- Device #0: Intel(R) HD Graphics 530

---------------------

But actually



intel-gpu-top: Intel Skylake (Gen9) @ /dev/dri/card0 -    0/   0 MHz; 100% RC6;  0.00/ 1.23 W;        0 irqs/s

      IMC reads:       53 MiB/s
     IMC writes:        1 MiB/s

         ENGINES     BUSY                                                                                   MI_SEMA MI_WAIT
       Render/3D    0.00% |                                                                               |      0%      0%
         Blitter    0.00% |                                                                               |      0%      0%
           Video    0.00% |                                                                               |      0%      0%
    VideoEnhance    0.00% |                                                                               |      0%      0%


----------------------------------------------

#!/bin/bash

killall -s 9 spectrumserver
killall -s 9 rx_sdr
killall -s 9 rx888_stream
killall -s 9 rtl_sdr

service sdrplay stop

sleep 2

exit

--------------------

[server]
port=8090 # Server port
html_root="frontend/dist/" # HTML files to be hosted
otherusers=1 # Send where other users are listening, 0 to disable
threads=1



[websdr]
register_online=false # If the SDR should be registered on https://sdr-list.xyz then put it to true
name="ChangeThis" # Name that is shown on https://sdr-list.xyz
antenna="ChangeThis" # Antenna that is shown on https://sdr-list.xyz
grid_locator="ChangeThis" # 4 or 6 length Grid Locatlr shown on https://sdr-list.xyz and for the Distance of FT8 Signals
hostname="" # If you use ddns or something to host with a domain enter it here for https://sdr-list.xyz

[limits]
audio=100
waterfall=100
events=100

[input]
sps=60000000 # Input Sample Rate
fft_size=4194304 # FFT bins
brightness_offset=0 # Waterfall brightness offset. Reduce to negative if you see black regions in the waterfall
fft_threads=10 # FFT threads
frequency=0 # Baseband frequency
signal="real" # real or iq
accelerator="opencl" # Accelerator: none, cuda, opencl
audio_sps=48000 # Audio Sample Rate
audio_compression="flac" # flac or opus
waterfall_size=2048
waterfall_compression="zstd" # zstd or av1
smeter_offset=0

[input.driver]
name="stdin" # Driver name
format="s16" # Sample format: u8, s8, u16, s16, u32, s32, f32, f64

[input.defaults]
frequency=5505000 # Default frequency to show user
modulation="USB" # Default modulation


-------------------

root@phantom:/home/wessex/PhantomSDR-Plus# ./start-rx888mk2.sh
spectrumserver: no process found
rx888_stream: no process found
root@phantom:/home/wessex/PhantomSDR-Plus# thread 'main' panicked at library/std/src/io/stdio.rs:1118:9:
failed printing to stdout: Broken pipe (os error 32)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

-----------------


This is nuts...

Bas ON5HB

Did you recompile PhantomSDR? As when you installed it, OpenCL wasn't installed en thus not compiled into the code.

Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

Martin G8JNJ

Looks like the path to OpenCL is missing

root@phantom:/home/wessex# ldconfig -p | grep OpenCL
        libOpenCL.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libOpenCL.so.1
        libOpenCL.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libOpenCL.so
        libOpenCL.so (libc6,x86-64) => /lib/libOpenCL.so

For the time being I have set the toml parameter to none

I'm currently feeding a 10MHz carrier into the RX-888 via a 10MHz BPF, but I'm not seeing any signal

Martin G8JNJ

Yes all recompiled and rebooted etc.


Quote from: Bas ON5HB on Sep 25, 2024, 05:11 PMDid you recompile PhantomSDR? As when you installed it, OpenCL wasn't installed en thus not compiled into the code.



Martin G8JNJ

OK so that seemed to do the trick

Antenna now reconnected and frequencies correct.

OpenCL set to none.

Any ideas how to get the OpenCL path variable setup correctly ?

Bas ON5HB

#56
Mine looks a bit different, you have a line extra:

root@Websdr:~# ldconfig -p | grep OpenCL
   libOpenCL.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libOpenCL.so.1
   libOpenCL.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libOpenCL.so
root@Websdr:~#

When it check the directory:

root@Websdr:/lib/x86_64-linux-gnu# ls libOpenCL*
libOpenCL.so  libOpenCL.so.1  libOpenCL.so.1.0.0
root@Websdr:/lib/x86_64-linux-gnu#
Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

Martin G8JNJ

root@phantom:/lib/x86_64-linux-gnu# ls -l

The desired entry is there, with full permissions

lrwxrwxrwx  1 root root        18 Sep 30  2021 libOpenCL.so -> libOpenCL.so.1.0.0

So why can't it be found ?

Bas ON5HB

#58
Ok, try this....in the Phantomdir:

meson --wipe build

Does it show these near the bottom of the output?

Run-time dependency opencl found: YES 3.0
Run-time dependency clfft found: YES 2.12.2

If yes, run this:

meson --reconfigure build

meson compile -C build

Does the compiler finish without errors, I mean without OpenCL linker errors.

Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

Martin G8JNJ

root@phantom:/home/wessex/PhantomSDR-Plus# meson --wipe build
The Meson build system
Version: 0.61.2
Source dir: /home/wessex/PhantomSDR-Plus
Build dir: /home/wessex/PhantomSDR-Plus/build
Build type: native build
Project name: spectrumdistributor
Project version: undefined
C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C++ linker for the host machine: c++ ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
meson.build:13: WARNING: Consider using the built-in option for language standard version instead of using "-std=c++23".
meson.build:13: WARNING: Consider using the built-in warning_level option instead of using "-Wall".
meson.build:13: WARNING: Consider using the built-in warning_level option instead of using "-Wextra".
Run-time dependency threads found: YES
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency fftw3f found: YES 3.3.8
Library fftw3f_omp found: YES
Run-time dependency OpenMP found: YES 4.5
Run-time dependency Boost (found: iostreams, system) found: YES 1.74.0 (/usr)
Found CMake: /usr/bin/cmake (3.22.1)
Run-time dependency glaze found: NO (tried pkgconfig and cmake)

Executing subproject glaze method cmake

glaze| Found CMake: /usr/bin/cmake (3.22.1)

| Configuring the build directory with CMake version 3.22.1
| Running CMake with: -G Ninja -DCMAKE_INSTALL_PREFIX=/usr/local
|   - build directory:          /home/wessex/PhantomSDR-Plus/build/subprojects/glaze/__CMake_build
|   - source directory:         /home/wessex/PhantomSDR-Plus/subprojects/glaze
|   - toolchain file:           /home/wessex/PhantomSDR-Plus/build/subprojects/glaze/__CMake_build/CMakeMesonToolchainFile.cmake
|   - preload file:             /home/wessex/PhantomSDR-Plus/build/meson-private/data/preload.cmake
|   - trace args:               --trace-expand --trace-format=json-v1 --no-warn-unused-cli --trace-redirect=cmake_trace.txt
|   - disabled policy warnings: [CMP0025, CMP0047, CMP0056, CMP0060, CMP0065, CMP0066, CMP0067, CMP0082, CMP0089, CMP0102]

| Running with expanded trace output on.
| Not searching for unused variables given on the command line.
| Trace will be written to cmake_trace.txt
| -- The CXX compiler identification is GNU 11.4.0
| -- Detecting CXX compiler ABI info
| -- Detecting CXX compiler ABI info - done
| -- Check for working CXX compiler: /usr/bin/c++ - skipped
| -- Detecting CXX compile features
| -- Detecting CXX compile features - done
| -- Fetching dependencies...
| -- ...finished fetching dependencies.
| -- The C compiler identification is GNU 11.4.0
| -- Detecting C compiler ABI info
| -- Detecting C compiler ABI info - done
| -- Check for working C compiler: /usr/bin/cc - skipped
| -- Detecting C compile features
| -- Detecting C compile features - done
| -- Configuring done
| -- Generating done
| -- Build files have been written to: /home/wessex/PhantomSDR-Plus/build/subprojects/glaze/__CMake_build

glaze| CMake configuration: SUCCEEDED
glaze| WARNING: CMake: path /home/wessex/PhantomSDR-Plus/subprojects/glaze/tests/asio_repe/server/include does not exist.
glaze| WARNING:  --> Ignoring. This can lead to build errors.
glaze| WARNING: CMake: path /home/wessex/PhantomSDR-Plus/subprojects/glaze/tests/asio_repe/client/include does not exist.
glaze| WARNING:  --> Ignoring. This can lead to build errors.
glaze| CMake project glaze has 52 build targets.

cmake-ast| Processing generated meson AST
cmake-ast| Build file: /home/wessex/PhantomSDR-Plus/build/subprojects/glaze/meson.build

glaze| Project name: glaze
glaze| Project version: undefined
glaze| C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
glaze| C linker for the host machine: cc ld.bfd 2.38
glaze| C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
glaze| C++ linker for the host machine: c++ ld.bfd 2.38
glaze| Build targets in project: 47
glaze| Subproject glaze finished.


Library liquid found: YES
Run-time dependency libzstd found: YES 1.4.8
Run-time dependency flac++ found: YES 1.3.3
Run-time dependency aom found: NO (tried pkgconfig and cmake)
Run-time dependency opus found: YES 1.3.1
Run-time dependency zlib found: YES 1.2.11

Executing subproject websocketpp

websocketpp| Project name: websocketpp
websocketpp| Project version: 0.8.2
websocketpp| C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
websocketpp| C++ linker for the host machine: c++ ld.bfd 2.38
websocketpp| Build targets in project: 47
websocketpp| Subproject websocketpp finished.

Run-time dependency tomlplusplus found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency tomlplusplus

Executing subproject tomlplusplus

tomlplusplus| Project name: tomlplusplus
tomlplusplus| Project version: 3.4.0
tomlplusplus| C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
tomlplusplus| C++ linker for the host machine: c++ ld.bfd 2.38
tomlplusplus| Message: target cpu_family: x86_64
tomlplusplus| Message: target cpu: x86_64
tomlplusplus| Message: target system: linux
tomlplusplus| Message: target endian: little
tomlplusplus| Compiler for C++ supports arguments -ferror-limit=5: NO
tomlplusplus| Compiler for C++ supports arguments -fmax-errors=5: YES
tomlplusplus| Compiler for C++ supports arguments -Wno-unused-command-line-argument: NO
tomlplusplus| Compiler for C++ supports arguments -Wno-reserved-macro-identifier: NO
tomlplusplus| Compiler for C++ supports arguments -Wno-init-list-lifetime: YES
tomlplusplus| Compiler for C++ supports arguments -fchar8_t: YES
tomlplusplus| Compiler for C++ supports arguments /bigobj: NO
tomlplusplus| Compiler for C++ supports arguments /Gy: NO
tomlplusplus| Compiler for C++ supports arguments /GF: NO
tomlplusplus| Compiler for C++ supports arguments /openmp-: NO
tomlplusplus| Compiler for C++ supports arguments /permissive-: NO
tomlplusplus| Compiler for C++ supports arguments /utf-8: NO
tomlplusplus| Compiler for C++ supports arguments /volatile:iso: NO
tomlplusplus| Compiler for C++ supports arguments /Zc:__cplusplus: NO
tomlplusplus| Compiler for C++ supports arguments /Zc:inline: NO
tomlplusplus| Compiler for C++ supports arguments /Zc:externConstexpr: NO
tomlplusplus| Compiler for C++ supports arguments /Zc:preprocessor: NO
tomlplusplus| Compiler for C++ supports arguments /Zc:throwingNew: NO
tomlplusplus| Compiler for C++ supports arguments -D_HAS_EXCEPTIONS=1: YES
tomlplusplus| Compiler for C++ supports arguments -Wno-c++98-compat: NO
tomlplusplus| Compiler for C++ supports arguments -Wno-c++98-compat-pedantic: NO
tomlplusplus| Compiler for C++ supports arguments -Wno-documentation: NO
tomlplusplus| Compiler for C++ supports arguments -Wno-documentation-unknown-command: NO
tomlplusplus| Compiler for C++ supports arguments -Wno-switch-enum: YES
tomlplusplus| Compiler for C++ supports arguments -Wno-covered-switch-default: NO
tomlplusplus| Compiler for C++ supports arguments -Wno-padded: YES
tomlplusplus| Compiler for C++ supports arguments -Wno-float-equal: YES
tomlplusplus| Compiler for C++ supports arguments -DTOML_HEADER_ONLY=0: YES
tomlplusplus| Compiler for C++ supports arguments -DTOML_SHARED_LIB=1: YES
tomlplusplus| Build targets in project: 48
tomlplusplus| Subproject tomlplusplus finished.

Dependency tomlplusplus found: YES 3.4.0 (overridden)
Run-time dependency CUDA (modules: cudart) found: NO (tried system)
Run-time dependency cufft found: NO (tried pkgconfig and cmake)
Run-time dependency opencl found: YES 3.0
Run-time dependency clfft found: YES 2.12.2
Library stdc++fs found: YES
Run-time dependency libcurl found: YES 7.81.0
Compiler for language cuda for the build machine not found.
Compiler for language cuda for the host machine not found.
Build targets in project: 49

spectrumdistributor undefined

  Subprojects
    glaze       : YES
    tomlplusplus: YES
    websocketpp : YES

  User defined options
    optimization: 3

Found ninja-1.10.1 at /usr/bin/ninja

Powered by EzPortal