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

The sdcard is always busy after call refreshFileList #536

Open
daoxuanquan opened this issue Sep 15, 2022 · 7 comments
Open

The sdcard is always busy after call refreshFileList #536

daoxuanquan opened this issue Sep 15, 2022 · 7 comments

Comments

@daoxuanquan
Copy link

daoxuanquan commented Sep 15, 2022

The sdcard was always busy after i called DemoComponentHelper.fetchCamera()?.mediaManager?.refreshFileList. I have tried to exit the playback mode by called exitPlayback() method and set the mode to shootPhoto but it seem not helpful. Because the sd card was busy so it unable to shoot photo either. I also tried on DJISdkDemo and got the same issues.
The steps for reproduce.
call method refreshFileList -> call shoot photo. (or check the sdcard by calling remainingSpaceInMB in DJICameraStorageState and see it return 0) -> got messages "Captured image failed because the sdcard is busy or the current mode not supported"
If you know how to take a picture affter calling refreshFileList, please point me out.

@DJI-William
Copy link

  1. Call enterPlayback to change the camera mode to the media download mode.
  2. After calling the refreshFileListWithCompletion, you need to check the DJIMediaFileListState. It should be DJIMediaFileListStateUpToDate.
  3. Call exitPlayback to exit the media download mode.
  4. Call setFlatMode:withCompletion to change your camera mode to DJIFlatCameraModePhotoSingle and take photos.

@daoxuanquan
Copy link
Author

IMG_1614
Yes. After i did like above steps. I got this message.

@DJI-William
Copy link

Which aircraft and camera you are using? Have you set the storage location correctly?

@daoxuanquan
Copy link
Author

daoxuanquan commented Sep 15, 2022

I'm using mavic air 2. I seem like only happened when have a lot of image in sd card > 200. I also check the DJIMediaFileListState, and it's DJIMediaFileListStateUpToDate but the sdcard still busy.

@daoxuanquan
Copy link
Author

I think so. Because everything is Ok if i not call refreshFileListWithCompletion

@daoxuanquan
Copy link
Author

daoxuanquan commented Sep 15, 2022

Seem the aircraft has a configuration about locking read and write ability of sd card. I have to restart the aircraft to put the state to normal.

IMG_0765

@DJI-William
Copy link

You are correct, it seems like the Mavic Air 2 has this kind of feature. Please send an email to support@dji.com asking how to disable this feature.

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

No branches or pull requests

2 participants