Forum
Please or Register to create posts and topics.

Modify the frequency to 18 GHz range using http put

Hi, i'm trying to change the frequency range of a SpectranV6 from 6ghz to 18ghz using the http put, i'm running the following command:

Other things like taking samples or loading missions work well.

Command

requests.put("http://localhost:54664/remoteconfig", json={
'request': 0,
'config': {'type': 'group',
'name': 'remoteconfig',
'label': 'RemoteConfig',
'items': [{
"type" : "group",
"name" : "Block_Spectran_V6B_0",
"items" : [{
'type': 'group',
'name': 'config',
'label': 'Config',
'items': [{
"type" : "group",
"name" : "device",
"label" : "Board Config",
"items" : [{
'type': 'enum',
'name': 'frequencyrange',
'label': 'Frequency Range',
'flags': '',
'value': 0,
}]
}]
}]
}]
}
}
)

Am I missing something? I took every name from the http get /remoteconfig.
Thank you for your help.

You snippet is at least missing the "Receiver"

There are two ways. You'll get the idea when query is done with GET /remoteconfig

The response will contain all block identifiers. Another easy way is the "Copy Block API Name" button in the block's burger menu.

You're also free to identify the block by the BlockName. I've just pushed the two examples for the frequency range to:
https://github.com/Aaronia-Open-source/python_RTSA_HTTP_API_Sequence_Example/blob/459def4ad8ac1a46be240a832286612c3a0b7a1e/req_autorecord_secquence.http#L30 and https://github.com/Aaronia-Open-source/python_RTSA_HTTP_API_Sequence_Example/blob/459def4ad8ac1a46be240a832286612c3a0b7a1e/req_autorecord_secquence.http#L55

Also it might be helpful to send enum changes as integers to get a more compact request.

Adri8 has reacted to this post.
Adri8

Thank you for your answer, it is working now, but there are some times that the RTSA suite gets crazy and stays constantly changing the values between 6ghz and 18ghz, and also when sending a "start" or "stop" though the /remoteconfig the suite starts and stops the spectran constantly and superfast, it seems like a bug. I leave a video here, in this case I just sent this:

Command

requests.put("http://localhost:54664/remoteconfig", json={
        "receiverName": "Block_Spectran_V6B_0",
        "config":
        {
            "type": "group",
            "items":
            [
                {
                    "type": "group",
                    "name": "device",
                    "items":
                    [
                        {
                            "type": "integer",
                            "name": "frequencyrange",
                            "value": 0
                        }
                    ]
                }
            ]
        }
    }
)