PhantomSDR Support Forum

General Category => PhantomSDR Hardware => Topic started by: Bas ON5HB on Sep 09, 2024, 01:35 PM

Title: RX888MK2...runs on J5040 CPU...
Post by: Bas ON5HB on Sep 09, 2024, 01:35 PM
You can run the system on the J5040 CPU....but, only 20MSPS / 10MHz....

CPU needs to be set at 2.6GHz / Performance.

OpenCL installed from the Intel pages described in the forum.

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

These CPU's don't eat much electricity and are perfect to webcast 70cm in 1 go ;)

OpenCL isn't that good on these CPU's but it works....and 10MHz is pretty cool for such a tiny system.

I use this on my testing server to play with, it's in the list when online.
Title: Re: RX888MK2...runs on J5040 CPU...
Post by: Bas ON5HB on Sep 09, 2024, 02:18 PM
After a lot of experimenting.....I got to 15MHz / 30MSPS....

Turns out that FFT needs just 1 thread!!! And the websdr needs all CPU's -1.

15MHz config on a tine J5040 CPU with OpenCL.

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

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

[limits]
audio=10
waterfall=10
events=10

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

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

[input.defaults]
frequency=648000 # Default frequency to show user
modulation="AM" # Default modulation

Title: Re: RX888MK2...runs on J5040 CPU...
Post by: magicint1337 on Sep 09, 2024, 02:44 PM
Would be interesting to see htop usage and intel_top usages
Title: Re: RX888MK2...runs on J5040 CPU...
Post by: Bas ON5HB on Sep 09, 2024, 02:47 PM
Here you go....

Schermafdruk op 2024-09-09 14-45-11.png

Schermafdruk op 2024-09-09 14-46-07.png

Beware, it's sooooo heavy loaded that even apt install gives problems on audio....it's maxed to the max ;D
Title: Re: RX888MK2...runs on J5040 CPU...
Post by: Bas ON5HB on Sep 09, 2024, 02:51 PM
Funny, OpenCL was turned off, when turned ON it couldn't do 15Mhz....very weird.

Question is WHY OpenCL isn't working as clinfo does list everything.
Title: Re: RX888MK2...runs on J5040 CPU...
Post by: Bas ON5HB on Sep 09, 2024, 03:08 PM
Now it works with OpenCL....

Schermafdruk op 2024-09-09 15-07-14.png

Turns out the Intel OneAPI doesn't work at all....
Title: Re: RX888MK2...runs on J5040 CPU...
Post by: magicint1337 on Sep 09, 2024, 03:12 PM
Can it handle more MHZ with OpenCL?
Title: Re: RX888MK2...runs on J5040 CPU...
Post by: Bas ON5HB on Sep 09, 2024, 03:13 PM
40MSPS now with OpenCL working.....the intel_gpu_top from intel-gpu-tools did the trick and shown if it was actually doing something ;D

Nice....20MHz on the J4050....
Title: Re: RX888MK2...runs on J5040 CPU...
Post by: Bas ON5HB on Sep 09, 2024, 03:13 PM
[input]
sps=40000000 # Input Sample Rate
fft_size=1048576 # FFT bins
#fft_size=4194304 # FFT bins
fft_threads=1
brightness_offset=0 # Waterfall brightness offset. Reduce to negative if you see black regions in the waterfall
frequency=0 # Baseband frequency
signal="real" # real or iq
accelerator="opencl" # Accelerator: none, cuda, opencl
audio_sps=12000 # Audio Sample Rate
audio_compression="flac" # flac or opus
waterfall_size=2048
waterfall_compression="zstd" # zstd or av1
smeter_offset=2

Title: Re: RX888MK2...runs on J5040 CPU...
Post by: magicint1337 on Sep 09, 2024, 03:14 PM
Pretty good :)
Title: Re: RX888MK2...runs on J5040 CPU...
Post by: Bas ON5HB on Sep 09, 2024, 03:15 PM
But it can't do much more....it's on it's limits.
Title: Re: RX888MK2...runs on J5040 CPU...
Post by: magicint1337 on Sep 09, 2024, 03:15 PM
The HD530 of the i5 6500t for example is double the performance of the GPU in the J5040 so 20mhz is very good.
Title: Re: RX888MK2...runs on J5040 CPU...
Post by: magicint1337 on Sep 09, 2024, 03:16 PM
how does cpu and gpu look now, can you post images again now after opencl?
Title: Re: RX888MK2...runs on J5040 CPU...
Post by: Bas ON5HB on Sep 09, 2024, 03:17 PM
Schermafdruk op 2024-09-09 15-17-03.png

Schermafdruk op 2024-09-09 15-16-44.png
Title: Re: RX888MK2...runs on J5040 CPU...
Post by: magicint1337 on Sep 09, 2024, 03:19 PM
Seems pretty good, i will in the future try to run it on the orangepi 5.

It should be stronger than the J5040 in both CPU and GPU and still will only consume about 8-10watts probably.

If i get it i will post results! Maybe a competitor for kiwi?
Title: Re: RX888MK2...runs on J5040 CPU...
Post by: Bas ON5HB on Sep 09, 2024, 03:20 PM
The GPU_TOP of the i5-7500 running at 3.4GHz doing 30MHz....

Title: Re: RX888MK2...runs on J5040 CPU...
Post by: magicint1337 on Sep 09, 2024, 03:20 PM
I heard that orangepi has better opencl support than normal pi 5 so im getting that.
Title: Re: RX888MK2...runs on J5040 CPU...
Post by: Bas ON5HB on Sep 09, 2024, 03:22 PM
Quote from: magicint1337 on Sep 09, 2024, 03:19 PMSeems pretty good, i will in the future try to run it on the orangepi 5.

It should be stronger than the J5040 in both CPU and GPU and still will only consume about 8-10watts probably.

If i get it i will post results! Maybe a competitor for kiwi?

Beware the J5040 consumes without receiver just 15W....but has more ram and is a lot faster ;D
Title: Re: RX888MK2...runs on J5040 CPU...
Post by: magicint1337 on Sep 09, 2024, 03:27 PM
J5040 is efficent but the orange pi 5 is really unbeatable for its size, i mean it is nearly as good as the Intel HD 530 in GPU and better than i5 6500t in CPU. And without receiver it should be near 7-10 watts.

Just for comparsion:
Orange PI: https://browser.geekbench.com/v6/cpu/472300
i5 6500t: https://browser.geekbench.com/processors/intel-core-i5-6500t

For the size its just amazing.
Title: Re: RX888MK2...runs on J5040 CPU...
Post by: magicint1337 on Sep 09, 2024, 03:27 PM
Just has to be able to handle the USB Bandwidth for the RX888 Mk2 then its amazing.
Title: Re: RX888MK2...runs on J5040 CPU...
Post by: Bas ON5HB on Sep 09, 2024, 03:31 PM
The big problem is the USB bus....also in the J5040, I doubt it is full USB 3.xx, look the problem is located there.