Fill `argumentValue` with `yamcs.yml` -> `secretKey``

19 views
Skip to first unread message

Patrick Dohmen

unread,
Apr 25, 2025, 5:54:04 PMApr 25
to yamcs
Hello all,

does anyone have an idea how I can inject, i.e., javascript to replace the contents (string!) of `argumentValue` in the following XTCE section:

<BaseMetaCommand metaCommandRef="base_packet">
<ArgumentAssignmentList>
<ArgumentAssignment argumentName="enable_ssdv_cmd_payload" argumentValue="00" />
</ArgumentAssignmentList>
</BaseMetaCommand>


Best regards,
Patrick, DL4PD

fabia...@spaceapplications.com

unread,
Apr 28, 2025, 8:39:51 AMApr 28
to yamcs
Not sure to fully understand your question. ArgumentAssignments are static.
If you need to do some dynamic manipulations beyond what XTCE has to offer, you could also look into making a custom link post-processor. This component has access to the full command binary and user arguments, and is able to modify the binary right before sending out.
Or alternatively, somehow update your XTCE XML before starting Yamcs.

Mark Rose

unread,
Apr 28, 2025, 11:25:49 AMApr 28
to yamcs
You could also use a custom encoder for the argument type. That custom encoder could do anything you like. I've used that to have arguments that auto-increment, for example, or fill in a portion of an argument, letting the client add the rest.

Mark
Reply all
Reply to author
Forward
0 new messages