Please do not post questions in the shout-box as it will be lost in a few days. Open your own topic in the appropriate section. Thank you.

Recent posts

#81
PhantomSDR Bugs / Re: Chatbox crash again....
Last post by Bas ON5HB - Jun 04, 2025, 03:10 PM
Quote from: Phil - NY4Q on Mar 14, 2025, 12:41 PMI modded the sendMessage() function in App.svelte to what is below and it seems to be working. After further testing, I will add it to the App.svelte.

function sendMessage() {
    newMessage = newMessage.replace(/[^\x00-\x7F]/g, ""); // Strips non-ASCII
    if (newMessage.trim() && username.trim()) {
      const messageObject = {
        cmd: "chat",
        message: newMessage.trim(),
        username: username,
      };
      socket.send(JSON.stringify(messageObject));
      newMessage = "";
      scrollToBottom();
    }
  }


It seems to remove too much, so I changed the filter to UNICODE. Testing at the moment:

newMessage = newMessage.replace(/[\u{33F0}-\u{FFFF}]/gu, ""); // Strips new version ON5HB - Unicode
As several people complained they can't use German characters. Hopefully Unicode solves this.

https://en.wikipedia.org/wiki/List_of_Unicode_characters

Hopefully no more weird stuff but all unicode accepted.
#82
PhantomSDR Bugs / Websdr crashing because of net...
Last post by Bas ON5HB - Jun 03, 2025, 03:52 PM
Still running, no more NIC reloads! ;D

Avahi-daemon is definitly the problem of many crashed if you have a Networkprinter with Bonjour protocol in your network.
#83
PhantomSDR Bugs / Re: Kernel-throttling stopped ...
Last post by Bas ON5HB - Jun 02, 2025, 03:52 PM
And that didn't work.

But I left it in there, but upped this one again: fft_size=8388608

Maybe it's FFTW that does this.

As this time right before it crashed again the NIC decided to go away and come back right after.
Making the websdr crash.

After reading more logs....this happened...

Jun  1 13:38:17 Websdr avahi-daemon[543]: Registering new address record for fda7:ffbb:e137:0:48d9:ce50:449c:89db on eno1.*.
Jun  1 13:38:18 Websdr avahi-daemon[543]: Registering new address record for 2a02:578:440e:0:dbab:16f0:d925:fe7d on eno1.*.
Jun  1 13:38:19 Websdr avahi-daemon[543]: Withdrawing address record for fda7:ffbb:e137:0:8dac:49ca:df13:6af0 on eno1.
Jun  1 13:38:20 Websdr avahi-daemon[543]: Withdrawing address record for 2a02:578:440e:0:765:5b94:ed3:b114 on eno1.

It played with the NIC! Need to find out why it does this.

Here we go....time to stop this stupid service that I do not need at all.

root@Websdr:/var/log# systemctl status avahi*
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
     Loaded: loaded (/lib/systemd/system/avahi-daemon.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2025-05-25 13:58:43 CEST; 1 week 1 day ago
TriggeredBy: ● avahi-daemon.socket
   Main PID: 543 (avahi-daemon)
     Status: "avahi-daemon 0.8 starting up."
      Tasks: 2 (limit: 18787)
     Memory: 1.5M
        CPU: 32.108s
     CGroup: /system.slice/avahi-daemon.service
             ├─543 "avahi-daemon: running [Websdr.local]"
             └─629 "avahi-daemon: chroot helper"

mei 31 13:38:28 Websdr avahi-daemon[543]: Registering new address record for 2a02:578:440e:0:765:5b94:ed3:b114 on eno1.*.
mei 31 13:38:29 Websdr avahi-daemon[543]: Withdrawing address record for 2a02:578:440e:0:42b0:f0b2:2878:745a on eno1.
jun 01 13:38:17 Websdr avahi-daemon[543]: Registering new address record for fda7:ffbb:e137:0:48d9:ce50:449c:89db on eno1.*.
jun 01 13:38:18 Websdr avahi-daemon[543]: Registering new address record for 2a02:578:440e:0:dbab:16f0:d925:fe7d on eno1.*.
jun 01 13:38:19 Websdr avahi-daemon[543]: Withdrawing address record for fda7:ffbb:e137:0:8dac:49ca:df13:6af0 on eno1.
jun 01 13:38:20 Websdr avahi-daemon[543]: Withdrawing address record for 2a02:578:440e:0:765:5b94:ed3:b114 on eno1.
jun 02 13:38:10 Websdr avahi-daemon[543]: Withdrawing address record for fda7:ffbb:e137:0:48d9:ce50:449c:89db on eno1.
jun 02 13:38:10 Websdr avahi-daemon[543]: Registering new address record for 2a02:578:440e:0:a6ec:9e52:671d:726f on eno1.*.
jun 02 13:38:10 Websdr avahi-daemon[543]: Registering new address record for fda7:ffbb:e137:0:14d:32b2:9887:4604 on eno1.*.
jun 02 13:38:11 Websdr avahi-daemon[543]: Withdrawing address record for 2a02:578:440e:0:dbab:16f0:d925:fe7d on eno1.

Quick solution:

systemctl stop avahi-daemon
systemctl disable avahi-daemon

Then it should not play with my NIC anymore.
#84
PhantomSDR Bugs / Kernel-throttling stopped the ...
Last post by Bas ON5HB - May 31, 2025, 02:43 PM
The websdr was crashed again, but the kernel started giving errors like these in dmesg:

perf: interrupt took too long (6398 > 6345), lowering kernel.perf_event_max_sample_rate to 31250

Right after these messages it crashed.

It seems the Kernel of Linux doesn't like when a program hoggs the CPU too long so it removes attention for a bit, throttle down the number of CPU-slices it gets.

This is not good for realtime applications like hours.

I hope this solves it:

sysctl -w kernel.perf_cpu_time_max_percent=0
Just turn it off ;D

To make it permanent, add this to /etc/sysctl.conf

kernel.perf_cpu_time_max_percent=0


sysctl -p to let it work instantly, no reboot needed but because you added it, it will stay after each reboot.
#85
PhantomSDR Bugs / Re: CW isn't working as should...
Last post by Bas ON5HB - May 29, 2025, 01:56 PM
You change the Bandwidth not the Frequnecy. Wrong button.
#86
PhantomSDR Bugs / Re: CW isn't working as should...
Last post by bh4rrg - May 29, 2025, 12:20 AM
In 1.5.4
CW mode
when touch -100hz , the marker in waterfall will not work correctly and cannot recieve the morse , because the cental frequence of filter is on -50hz, and need turn the frequence to +50hz for recieving the same morse.
#87
General Discussion / Re: FT8 decoded messages
Last post by Bas ON5HB - May 28, 2025, 09:20 PM
Yes it is overkill.

As there is no need to do it.

As you do not seem to understand systemd (replacement of Init V), you use VM's.

VM's are a waste of CPU-power. You seem to me pretty new to Linux/Unix.

Linux/Unix is not designed to go down over a simple mistake...Windows does. Linux does not.

As you think VM's are needed, you don't trust Linux or you do not know enough.

VM's are for hosting or running Windows on top of Linux. When running pure Linux software, VM's are overkill and not needed.

Who told you that you need VM's? I fact I hate VM's as you need to login every instance to check for problems, while without 1 command tells you all.

Do what you want, but people that think VM's are needed for a few Linux tasks are stupid in my book. Like I said before....Linux is NOT WINDOWS. :'(
#88
General Discussion / Re: FT8 decoded messages
Last post by SQ2RBY - May 28, 2025, 09:08 PM
Nah Bas, it is not overkill, it is a kind of powersaving,
Host OS is Ubuntu, VM OS is also Linux, Ubuntu, Debian , depends on system needs
and NO WAY to use any "shwindows"
Having VMs is easier to maintain remote backups/snapshot/recovery etc.
Multiple services on one machine/OS makes a lot of problems when one of them is failing.
 

Grzegorz
SQ2RBY
#89
General Discussion / Re: FT8 decoded messages
Last post by Bas ON5HB - May 28, 2025, 07:13 PM
Why do you need virtualization for that?

You can run them without the overhead. What you do now is simulating more machines and you waste a lot of CPU-cycles.

Running without is a lot easier.

My server runs a lot at the same time, Phantom is one of them.

You can do this all via Systemd and check PID's. Virtualization is overkill, you run that to run e.g. Windows beside Linux... ;D
 
Linux is designed to run multiple servers/programs at the same time, it's not Windows 8)
#90
General Discussion / Re: FT8 decoded messages
Last post by SQ2RBY - May 28, 2025, 07:04 PM
why CUDA? ->> experimenting purposes ;)

Why Virtualization? ->> experimenting purposes ;)

One tiny PC as a HOST and two virtual machines , one as webserver PhantomSDR+ , and second as APRS IGate 
This Tiny PC is based on Intel i5 CPU / 32GB RAM / NVME DISK has 90W power adaptor - just like regular laptop ;)

Grzegorz
SQ2RBY
Powered by EzPortal