Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L515 - C#: Advanced Mode not Supported #7182

Closed
siwidmer opened this issue Aug 25, 2020 · 5 comments
Closed

L515 - C#: Advanced Mode not Supported #7182

siwidmer opened this issue Aug 25, 2020 · 5 comments
Labels

Comments

@siwidmer
Copy link

Hello,
I'm integrating a L515 into our C# Framework. I'd like to import a JSON File I created in the 'Intel RealSense Viewer'.

`var pipe = new Pipeline();
PipelineProfile pipelineProfile = pipe.Start(_config);
var advancedDev = AdvancedDevice.FromDevice(pipelineProfile.Device);

if (advancedDev.AdvancedModeEnabled)
{
advancedDev.JsonConfiguration = System.IO.File.ReadAllText("Settings.json");
}
`
This code exits always with an exception saying: "The Device does not support advanced mode". Is there a property to enable the advanced mode? In the viewer exporting and importing settings files are working neatly. Is there an issue with the C# implementation?

@dorodnic dorodnic added the l500 label Aug 26, 2020
@dorodnic
Copy link
Contributor

Hi @siwidmer
The L500 indeed does not support Advanced Mode interface (in same sense of 90-ish controls D400 exposes), its not limited to C# wrapper. You can configure L500 completely by setting sensor options explicitly using the values in JSON file.

@bmegli
Copy link
Contributor

bmegli commented Aug 27, 2020

Hi @siwidmer,

In C++ with L515 you may load the json with rs2::serializable_device (instead of AdvancedMode which it doesn't support).

See C++ class hierarchy here.

// C++ example (not C#)
rs2::pipeline_profile profile = pipe.get_active_profile();

if(!json.empty())
{
  cout << "loading settings from json:" << endl << json  << endl;
  auto serializable  = profile.get_device().as<rs2::serializable_device>();
  serializable.load_json(json);
}

Have a look if it would be possible from your C# framework.

@siwidmer
Copy link
Author

Thank you @bmegli for your hint!

I investigated the C#-wrapper. Unfortunately, I didn't find any methode integrating your C++ fonctionality.

@siwidmer
Copy link
Author

@dorodnic: Thank you for pointing this out. Then I'll set all values explicity.

@RealSenseSupport
Copy link
Collaborator

Hi @siwidmer

Is anything further needed on this thread?

*If we don’t hear from you in 7 days, this issue will be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants