PhantomSDR Support Forum

General Category => PhantomSDR Wishlist => Topic started by: 9a7aof on Dec 06, 2024, 01:20 PM

Title: New version PhantomSDR+ or App.svelte
Post by: 9a7aof on Dec 06, 2024, 01:20 PM
Hello everyone,

I hope it's time to release a newer version of PhantomSDR+ or
at least App.svelte with the changes from ON5HB, NY4Q, HB3XDC and SV1BTL included.

It would be nice to fix the known bug with marker.json and computers
without graphics acceleration (unknown modulation type when clicking on a marker).

Thanks.
Darko, 9a7aof
Title: Re: New version PhantomSDR+ or App.svelte
Post by: Bas ON5HB on Dec 06, 2024, 02:45 PM
Included is my app.svelte.

You can use a backgroundimage, place background.jpg in the map assets, when you compile it, it will be included.

As for the bug you mention, I will look into it, have not seen it before.

Edit: I have looked into your markers 'bug' but I can not confirm it. I turned opencl off, ran it and clicked the markers I have, they function fine.
Looks to me you made a mistake somewhere in the marker-file.

Can you post it?
Title: Re: New version PhantomSDR+ or App.svelte
Post by: Bas ON5HB on Dec 06, 2024, 03:20 PM
I checked your websdr and it's only the CB markers that don't function, all the others function as should.
There must be a problem with your markers-file.

You can only use modulation: AM/FM/LSB/USB/CW and WBFM, however the last one is meant for radio stations, not for communications.
Title: Re: New version PhantomSDR+ or App.svelte
Post by: 9a7aof on Dec 06, 2024, 03:47 PM
QuoteIncluded is my app.svelte.

Thanks Bas,
i will compile it now.

As for the error with the modulation type and marker, this is how it can be reproduced.

Go to http://9a7aof.ddns.net:8904 (0-22MHz) or http://9a7aof.ddns.net:8905 (CB only). FM modulation is not interesenting for me.

Both Phantoms work without graphics acceleration because the graphics cards on those laptops do not have it, they are old.

QuoteI checked your websdr and it's only the CB markers that don't function, all the others function as should.
There must be a problem with your markers-file.

Click on a marker report undefined for the type of modulation.

Clicking on the button to change the modulation makes the right type of modulation and everything is fine until you click on another marker.

When I call the memorized frequency and modulation from Bokmarks everything is fine.

My current markers.json file and Screenshot with this bug  is attached.

Kind regards,
Darko, 9a7aof
Title: Re: New version PhantomSDR+ or App.svelte
Post by: Bas ON5HB on Dec 06, 2024, 03:55 PM
First problem....

{
        "frequency": 438411500,
        "name": "=DMR=",
        "modulation": "DMR"
    }

DMR??? ;D

{
        "frequency": 50650000,
        "name": "PACKET",
        "modulation": "packet"
    },


packet???

{
        "frequency": 7074000,
        "name": "FT8",
        "modulation": "FT8"
    },

FT8 must always be USB. FT8 is not a mode.

Looks to me you confuse the backend somehow by inserting modes that are not defined.

Title: Re: New version PhantomSDR+ or App.svelte
Post by: Bas ON5HB on Dec 06, 2024, 04:16 PM
To make it more clear....the backend (server) only knows:

    if (default_mode_str == "LSB") {
        default_mode = LSB;
        default_l = default_m - offsets_3;
        default_r = default_m;
    } else if (default_mode_str == "AM") {
        default_mode = AM;
        default_l = default_m - offsets_5;
        default_r = default_m + offsets_5;
    } else if (default_mode_str == "FM") {
        default_mode = FM;
        default_l = default_m - offsets_5;
        default_r = default_m + offsets_5;
    } else if (default_mode_str == "WBFM") {
        default_mode = FM;
        default_l = default_m - offsets_96;
        default_r = default_m + offsets_96;
    } else {
        default_mode = USB;
        default_l = default_m;
        default_r = default_m + offsets_3;
    }

So when a mode isn't known it will use USB. But the markers are not checked on mode, so if you use anything else, you will put it in a undefined state. What happens when you do that, I do not know.

The markers where put in there in a rush because people wanted them. So do not invent your own modes.
As the backend will use USB but the frontend sending information when clicked to the backend that it doesn't know how to deal with.

Ergo, anything can happen.

Packet = always FM
FT-8 = always USB
WSPR = always USB
DMR = always FM
etc....so you must set the appropriate modulation-mode.

Don't confuse transmission-type with modulation-mode ;D

ONLY USE: AM/FM/WBFM/CW/USB/LSB nothing more.

CW isn't in this list, but is handled like one of the above, forgot the one it is ;)


Title: Re: New version PhantomSDR+ or App.svelte
Post by: 9a7aof on Dec 06, 2024, 04:35 PM
Hello Bas,

I also have OpenWebrx, its markers.json is called bookmarks.json, they have similar but different syntax.

First I manually wrote bookmarks.json and then manually "translated" it into markers.json

Mistakes also occurred in this great work. OpenWebrx has regular "modulation type" DMR, PACKET and FT8, it really works that way.

A small loss of concentration resulted in a big mistake in writing the text.

Thanks for Your help,
Darko
Title: Re: New version PhantomSDR+ or App.svelte
Post by: Bas ON5HB on Dec 06, 2024, 04:57 PM
I hear you, but the markers was a quick and dirty patch to make it work.
There is no check for mistakes if you make them.