Re: [Discuss OpenCPI] [UK OFFICIAL] RE: Set Platform Properties from Application

From: James Kulp <jek_at_parera.com>
Date: Mon, 18 Jan 21 18:17:46 -0500

On 1/17/21 10:14 PM, Brian Padalino wrote:
> On Sun, Jan 17, 2021 at 10:07 PM James Kulp <jek_at_parera.com
> <mailto:jek_at_parera.com>> wrote:
>
> Have you tried to add those workers into the application?
>
>
> I'm not sure what you mean by this.  There's a property associated
> with the platform that I want to set.  I can set it from ocpihdl but I
> can't seem to do it in my application the way I was able to do it before.
>
> What do you recommend I need to change at the application level to get
> access to setting those properties?
>
> Brian

I did some more poking around.  It almost works in that any worker in
the bitstream with a control interface can be included in the
application, and it becomes available to the application for the
property API.

I.e. I added:

<instance component='ocpi.core.platform'/>

To the application, and made sure that component was mapped to the
platform I cared about (-Pplatform=plutosdr).  THe initial property
values were dumped as normal.

The problem seems to be that many such "infrastructure" workers get
inadvertently reinitialized by the application, which conflicts with
their behind-the scenes automatic initialization done by the OpenCPI
runtime.

So we're close.

Its possible that unconnected workers that are devices, but do not have
any other infrastructure role, would work ok.

Jim






Received on Mon Jan 18 2021 - 23:17:46 CST

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