Actions
Support Request #10133
closedChange active configuration after ADTF launch
Status:
Closed
Priority:
Normal
Customer:
BOSCH
Department:
Requester's Priority:
Normal
Support Level:
2nd Level
Resolution:
Solved Issue
Product Issue Numbers:
Affected Products:
Platform:
Windows 10 64bit
Topic:
ADTF::Common
FAQ Links:
Description
Supportanfrage
We have an following requirement- [Existing] ADTF is launched with parameter(mentioning the active configuration) by an exe
- [Existing] An registered ADTF service which gets initialized will then control the RL State (Application, Running and XSystem) based on external trigger/event
- [Requirement] Is there a way after ADTF launch and RLState:XSystem, switch the active configuration to any one which exists, after which an RLState to Application and Running could be applied to the one configuration which is made active.
Lösung
I would recommend to use the Python Support Service and a script, which maybe does the same as your self-implemented service:- See also The ADTF Python Package
But if you want to do yourself within a service, you can set it using the ISessionManager interface... something like:
cObjectPtr<ISessionManager> pSessionManager;
RETURN_IF_FAILED(_runtime->GetObject(NULL, IID_ADTF_SESSION_MANAGER, (tVoid**) &pSessionManager, __exception_ptr));
RETURN_IF_FAILED(pSessionManager->SetActiveConfiguration("my_active_configuration", __exception_ptr));
You can also write an own application, see Creating a working combination of the Session and Filtergraph manager services
Updated by hidden about 4 years ago
- Project changed from Public Support to 5
- Topic set to ADTF::Common
- Customer set to BOSCH
Updated by hidden about 4 years ago
- Status changed from In Progress to Customer Feedback Required
Hi Robin,
I would recommend to use the Python Support Service and a script, which maybe does the same as your self-implemented service:- See also The ADTF Python Package
But if you want to do yourself within a service, you can set it using the ISessionManager interface... something like:
cObjectPtr<ISessionManager> pSessionManager;
RETURN_IF_FAILED(_runtime->GetObject(NULL, IID_ADTF_SESSION_MANAGER, (tVoid**) &pSessionManager, __exception_ptr));
RETURN_IF_FAILED(pSessionManager->SetActiveConfiguration("my_active_configuration", __exception_ptr));
You can also write an own application, see Creating a working combination of the Session and Filtergraph manager services
Updated by hidden about 4 years ago
Thanks for the suggestion !!
We shall try using the "ISessionManager" and do support us if we are to face any issue in coming days.
As of now we can close this ticket.
Updated by hidden about 4 years ago
- Project changed from 5 to Public Support
- Subject changed from [Support] Change active configuration after ADTF launch to Change active configuration after ADTF launch
- Description updated (diff)
- Private changed from Yes to No
- Resolution set to Solved Issue
Updated by hidden about 4 years ago
- Status changed from Customer Feedback Required to To Be Closed
Actions