[Discuss OpenCPI] [UK OFFICIAL] Questions about the new proxy workers and slaves model

From: Walters Dominic A <dawalters_at_mail.dstl.gov.uk>
Date: Tue, 05 Jan 21 17:19:39 +0000

Classification: UK OFFICIAL


Hi,

A few questions regarding the v2.1.0 changes to proxies and slaves, now that the subassembly syntax has been added:

· Is it possible to reference the proxy in the "slaves" subassembly? For example:

o Is it possible for a proxy to have a port connection to its slave, without a hack?

§ I have a use case where the slave sends a complex message (not implementable as a property) through a port (to_proxy) to its proxy (from_slave).

§ It then sets properties of the slave.

§ Finally, the proxy replies with another complex message (not implementable as a property) (to_slave) back to the slave (from_proxy).

§ As far as I can tell, the way I would do this now (hacky) is to:

· Externalise the "to_proxy" and "from_proxy" ports.

· In the application make two connections from the proxy to itself.

o to_proxy to from_slave.

o to_slave to from_proxy.

§ If this is possible within the subassembly, how would I do this? What is the syntax?

§ Is there a keyword (proxy, master, etc) to denote the proxy?

o Is it possible for a slave to use the value of its proxies parameters for its parameters?

§ Can I set slave.ocpi_debug to proxy.ocpi_debug, or any other property of slave to some property of proxy?

§ If so, what's the syntax for doing this?
Kind Regards,
Dominic Walters


"This e-mail and any attachment(s) is intended for the recipient only. Its unauthorised use,
disclosure, storage or copying is not permitted. Communications with Dstl are monitored and/or
recorded for system efficiency and other lawful purposes, including business intelligence, business
metrics and training. Any views or opinions expressed in this e-mail do not necessarily reflect Dstl policy."

"If you are not the intended recipient, please remove it from your system and notify the author of
the email and centralenq_at_dstl.gov.uk"


Received on Tue Jan 05 2021 - 17:19:39 CST

This archive was generated by hypermail 2.3.0 : Fri Jun 05 2026 - 08:45:25 CDT