Getting RC model - MSDK 4

已完成

评论

11 条评论

  • DJI Developer Support
    Our engineers will be on holiday for the Chinese New Year(2-06~ 2-17), which may cause some delays in responding to your ticket. We appreciate your patience and apologize for the inconvenience this may cause you. You can first search for related articles in our knowledge base https://djisdksupport.zendesk.com/hc/en-us. We will answer your ticket as quickly as possible when the holiday is over.
    0
    评论操作 固定链接
  • DJI Developer Support
    Which RCs are unable to use RemoteControllerKey.DISPLAY_NAME?
    0
    评论操作 固定链接
  • Jonathan Gabbay

    DJI Smart Controller (RM500)

    0
    评论操作 固定链接
  • DJI Developer Support
    Using the following method, you can obtain the name of the remote control. KeyManager.getInstance().getValue(RemoteControllerKey.create(RemoteControllerKey.DISPLAY_NAME), new GetCallback() { @Override public void onSuccess(@NonNull Object o) { String name = (String) o; Log.d("RemoteController", "DISPLAY_NAME: "+name); } @Override public void onFailure(@NonNull DJIError djiError) { Log.d("RemoteController", "onFailure: "+djiError.getDescription()); }});
    0
    评论操作 固定链接
  • Jonathan Gabbay

    As I mentioned in the original post, I am getting NULL value with some controllers:

    "The problem is, some RC do not support getting the DISPLAY_NAME, I am getting NULL value when getting that key, so I can't identify the connected RC model."

    0
    评论操作 固定链接
  • DJI Developer Support
    I understand your issue. After you change `addListener` to `getValue`, you will be able to retrieve the name of the remote control correctly. It has been tested and performs well on RM500 and other remote controls.
    0
    评论操作 固定链接
  • Jonathan Gabbay

    I get NULL value when using getValue.

    When using addListener, I get nothing at all, the callback is not called.

    0
    评论操作 固定链接
  • yating.liao

    This is different from the results of my test. I was able to get the name through getValue on both the DJI Smart Controller and DJI Smart Enterprise Controller.

    0
    评论操作 固定链接
  • DJI Developer Support
    "
    0
    评论操作 固定链接
  • Jonathan Gabbay

    yating.liao

    Works for you and also works on other controllers we have.

    But on that specific Smart controller we get null value.

    Must be a faulty device, I will try reset to factory settings. Thank you!

    0
    评论操作 固定链接
  • yating.liao

    If the issue persists, perhaps you could record a video for us to visually assess the situation.

    0
    评论操作 固定链接

请先登录再写评论。