YGW using multiple nodes

24 views
Skip to first unread message

Rita Misinszki

unread,
Jul 24, 2025, 3:09:54 PMJul 24
to yamcs
Dear all, 

I would like to use multiple nodes for the communication in the gateway, but I could not figure out how to set node id for TC-s. I would like to use different nodes for different TCs. 
Can I get some help for it?

Many thanks,
Rita

Nicolae Mihalache

unread,
Jul 24, 2025, 3:21:22 PMJul 24
to ya...@googlegroups.com
Unfortunately there is some configuration involved. The way to do it is to set multiple streams in Yamcs, under streamConfig:

streamConfig:
  tc:
    - name: tc_node1
      processor: realtime
      tcPatterns: ["/XYZ/.*"]
    - name: tc_node2
      processor: realtime
      
tcPatterns: ["/ABC/.*"]


This will cause the commands that are in the subsystem /XYZ to go to stream tc_node1 and the commands that are in the subsystem /ABC to go into the stream tc_node2. You can also choose the stream when you send the command, it should be in the extra options.

Then you have to configure the ygw link to forward each stream to its corresponding node. Something like this:
dataLinks:
  
-name: ygw
   class: org.yamcs.ygw.YgwLink
   ....
   
nodes:
     node1:
       tcStream: tc_node1
      node2:
       tcStream: tc_node2

The "node1" and "node2" in the ygw link config have to match the names of the node as they are registered in the Yamcs Gateway.
The node ids are only used in the communication protocol, you cannot use them in the config.


We should simplify all this config in the future but for the moment this is what we have....

nicolae



--
You received this message because you are subscribed to the Google Groups "yamcs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yamcs+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/yamcs/8ad7a24a-d0df-4512-8b82-8d2adfc87d60n%40googlegroups.com.

Rita Misinszki

unread,
Jul 31, 2025, 8:42:18 AMJul 31
to yamcs

Dear Nicolae,

It is works fine, thank you!

Rita
Reply all
Reply to author
Forward
0 new messages