Yamcs Command Subscription in python

66 views
Skip to first unread message

Sultan Mesmar

unread,
Feb 9, 2023, 12:41:28 AM2/9/23
to yamcs
Hello,

Is there a way to create a command subscription on Yamcs, using python without having to resort  to using websockets? And if websockets are the only way, how can I integrate it in python and specify the command to be subscribed to?

Thank you in advance.
SM

fabia...@spaceapplications.com

unread,
Feb 9, 2023, 4:05:02 AM2/9/23
to yamcs
Hi, the Yamcs Python Client has a method which helps to send one or more commands and optionally following up on acknowledgments status:

This uses a combination of both REST and WebSocket. In Yamcs all subscriptions use WebSocket as this allows for a long-running communication channel over HTTP.
In this specific case: the sending of a command is a simple REST method, whereas to receive acknowledgment updates uses WebSocket.

Example usage:

Sultan Mesmar

unread,
Feb 10, 2023, 1:43:08 AM2/10/23
to yamcs
Hi.

Thank you for your reply.

I was hoping to find a way to just get the command that was sent and be able to check the parameters that were sent instead of sending them myself. This will help in automating the process.

Is there another way?

SM 

fabia...@spaceapplications.com

unread,
Feb 13, 2023, 4:13:12 AM2/13/23
to yamcs
You mean this?
For the first one, any filtering will need to be done on the client.
Reply all
Reply to author
Forward
0 new messages