Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON API Not Working Correctly #396

Open
SpacePretender opened this issue Oct 23, 2024 · 0 comments
Open

JSON API Not Working Correctly #396

SpacePretender opened this issue Oct 23, 2024 · 0 comments

Comments

@SpacePretender
Copy link

SpacePretender commented Oct 23, 2024

Hello,

I've been trying to utilize the JSON API in COSMOS to allow for post-launch anomaly deployments but I'm having trouble actually getting my commands to run. I'm greeted with messages such as "Interface not connected, RADIO" or "Packet 'GENERIC_EPS GENERIC_EPS_RST_COUNTERS_CC' does not exist" when I'm able to see it in the CmdTlmServer window.

I also cannot get anything out when requesting TLM packets, similar responses are sent. I've even tried using the example from the docs listed HERE.

Am I doing something wrong, or does the version of COSMOS bundled with nos3 not have the full functionality of the API?

Here's the request I'm sending for reference.

curl -i -H "Content-Type: application/json-rpc" -H "Authorization: nos3123!" -d '{"jsonrpc": "2.0", "method": "cmd", "params": ["GENERIC_EPS GENERIC_EPS_RST_COUNTERS_CC"], "keyword_params": {"scope": "DEFAULT"}, "id": 1}' -X POST http://127.0.0.1:2900/openc3-api/api

or for the "Interface not connected, RADIO" message, I'm sending:

curl -i -H "Content-Type: application/json-rpc" -H "Authorization: nos3123!" -d '{"jsonrpc": "2.0", "method": "cmd", "params": ["GENERIC_EPS_RADIO GENERIC_EPS_RST_COUNTERS_CC"], "keyword_params": {"scope": "DEFAULT"}, "id": 1}' -X POST http://127.0.0.1:2900/openc3-api/api

Thank you, any help is greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant