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

Workaround to support FLASH WRITE for MIPI camera D457 #13642

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

Arun-Prasad-V
Copy link
Contributor

[Tracked on LRS-472]

// This is a WORKAROUND to support MIPI camera D457.
// If the packet size is more than 128 bytes, FLASH_WRITE is not working as expected.
// Revert this line after fixing the issue.
packet_size = std::min(packet_size, 128);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for all D400 devices? not MIPI only?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now it is for all. Maybe for D500 devices as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated it to only apply this workaround for D457.

@@ -569,7 +569,7 @@ namespace librealsense
}
set_hw_monitor_for_auto_calib(_hw_monitor);

_ds_device_common = std::make_shared<ds_device_common>(this, _hw_monitor);
_ds_device_common = std::make_shared<ds_device_common>(this, _hw_monitor, (_pid == ds::RS457_PID)? true : false);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see on this common class we have another place where we distinguish between D400 and d500
if( auto dev = dynamic_cast< d400_device * >( _owner ) ) return dev->get_raw_depth_sensor();

So we can see if it's D457 by reading the camera name instead of passing this bool.

What do you think? which way is nicer?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will check it.

@Nir-Az
Copy link
Collaborator

Nir-Az commented Dec 31, 2024

@Arun-Prasad-V is this ready for review?
Tested on USB + MIPI devices?

@Arun-Prasad-V Arun-Prasad-V marked this pull request as ready for review December 31, 2024 14:36
@Arun-Prasad-V
Copy link
Contributor Author

@Arun-Prasad-V is this ready for review? Tested on USB + MIPI devices?

yes.

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

Successfully merging this pull request may close these issues.

2 participants