Forum
Please or Register to create posts and topics.

Change RTSA PRO Parameters with API

Page 1 of 3Next

I want to change some parameters, for example sweep zoom start frequency, stop frequency or spectran referance level with API request or any way. Is it possible? If the answer is yes, how can I do ?

https://v6-forum.aaronia.de/wp-content/uploads/asgarosforum/32/RTSA-http-Stream-Server-Endpoints-8.pdf

I found in that document.

I can change start, end, span, center, referance level. I want to change rbw frequency and snn value

 

Quote from joedalton on 07/03/2024, 14:05

I want to change rbw frequency and snn value

 

These settings are block-specific and therefore can't be changed as easily via /control. You'll have to send a PUT request to the /remoteconfig endpoint with the proper JSON structure.

can you give an example ?

For example :

{

"type":"control",

"rbw":50e3,

"snn":10

}

Something like this (with attached mission):

{

"request": 1,

"receiverName": "Block_Spectran V6 Sweep Zoom_0",

"config":

{

"type": "group",

"name": "main",

"items": [

{"name": "rbwFrequency", "value": 100000, "type": "integer"},

{"name": "smoothNoiseFloor", "value": 0.1, "type": "float"}

]

}

}

 

Uploaded files:

Do I have to have a "remote config" block for change rbw and snn ?

Should also work without RemoteConfig block.

my mission

 

That is my mission template.

I send put request by "Postman" application. ( http://localhost:54664/remoteconfig )

My request body :

{
    "request": 1,
    "receiverName": "Block_Spectran V6 Sweep Zoom_0",
    "config":
    {
        "type": "group",
        "name": "main",
        "items": [
            {
                "name": "rbwFrequency",
                "value": 10e3,
                "type": "integer"
            },
            {
                "name": "smoothNoiseFloor",
                "value": 0.2,
                "type": "float"
            }
        ]
    }
}

 

It does not work. Could "receiverName" be wrong? How can I find out?

 

I receive that response :

{
    "request": 1,
    "config": {
        "type": "group",
        "name": "remoteconfig",
        "label": "RemoteConfig",
        "flags": "",
        "items": []
    }
}

What do you get when sending a GET request to the /remoteconfig endpoint? If that is also mostly empty, try dis- and reconnecting the HTTP server block

It's working now, I do not know why it did not work.

I send put request and receive a long json response but anything did not change.

 

Page 1 of 3Next