dji-sdk / Mobile-SDK-Android-V5

MSDK V5 Sample
Other
285 stars 147 forks source link

DeviceHealthManager - how to get module type for specified error/warning #61

Open jeryini opened 1 year ago

jeryini commented 1 year ago

Hello!

In DJI Pilot 2, there is Health Management System view which displays any ongoing issues coming from certain module (eg. Propulsion, Avionics, etc.). Screenshot_20230116-145434

In V5 SDK, there is IDeviceHealthManager, that provides same information. But how do we get the module under which that error belongs, e.g. does it belong under Propulsion or Avionics. In V4 there was DJIDiagnostics class, which provided diagnostic for certain module. We could then get the module that it belong to via getType method to retrieve DJIDiagnosticsType. It seems that there is now no way to get this kind of type for each issue received via onDeviceHealthInfoUpdate.

I also noticed that v4 SDK provided hms.json file, where some of those alarm ids also appear in new drones that are only supported by new V5 SDK. But mapping each alarm to certain module would be very painstaking.

Could DJI add that kind of information to SDK so that we would have a way to match error/warning to exact module?

DJI-William commented 1 year ago

This is a new feature for HMS system. We will discuss internally after Chinese New Year. I will leave a comment on this post once we have a final decision.

hari0603 commented 1 year ago

Hi @DJI-William, are there any updates on this?