OcuSync Link setChannelNumber on Mobile SDK Version 4.12 is not working
OcuSyncLink Set Channel Number is not working and receives e.g "OcuSync set channel number: 2455 error: Param Illegal".
Mobile SDK Version 4.12
Tested Drones:
- Mavic 2 Zoom : :x:
- Phantom 4pro v2.0 :x:
- Phantom 4 Standard (Lightbridge) :heavy_check_mark:
- Mavic Pro :heavy_check_mark:
Pre Configuration:
- Set Channel Bandwidth
bandWidthto Bandwidth10MHz or Bandwidth20MHz. - Set Frequency Band
frequencyBandto FREQUENCY_BAND_2_DOT_4_GHZ or FREQUENCY_BAND_5_DOT_8_GHZ. - Set Channel Selection Mode to ChannelSelectionMode.MANUAL.
Action:
- on 2.4Ghz Band: set
channelbetween 2401 and 2477 - on 5.8Ghz Band: set
channelbetween 5725 and 5849
Result:
- e.g "OcuSync set channel number: 2455 error: Param Illegal".
...
mOcuSyncLink.setChannelBandwidth(bandWidth, new CompletionCallback() {
@Override public void onResult(DJIError djiError) {
if (djiError != null) {
Log.e(DEBUG_TAG, "set Channel Bandwidth: " + bandWidth.name() + " error: " + djiError.getDescription());
} else {
Log.d(DEBUG_TAG, "set Channel Bandwidth: " + bandWidth.name() + " accept");
}
}
});
...
...
mOcuSyncLink.setFrequencyBand(frequencyBand ,new CommonCallbacks.CompletionCallback() {
@Override
public void onResult(DJIError djiError) {
if (djiError != null) {
Log.e(DEBUG_TAG, "set frequency band " + djiError.getDescription());
} else {
Log.d(DEBUG_TAG, "set frequency band " + frequencyBand.name() + " accept");
}
}
});
...
...
mOcuSyncLink.setChannelSelectionMode(ChannelSelectionMode.MANUAL, new CommonCallbacks.CompletionCallback() {
@Override
public void onResult(DJIError djiError) {
if (djiError != null) {
Log.e(DEBUG_TAG,"channel selection mode set manual error: " + djiError.getDescription());
}
}
});
...
...
mOcuSyncLink.setChannelNumber(channel, new CommonCallbacks.CompletionCallback() {
@Override
public void onResult(DJIError djiError) {
if (djiError != null) {
Log.e(DEBUG_TAG,"OcuSync set channel number: "+ channel +" error: "+ djiError.getDescription());
} else {
Log.d(DEBUG_TAG,"OcuSync Channel accept: " + channel);
}
}
});
Agent comment from Luce Luo in Zendesk ticket #36484:
Dear Customer,
Thank you for contacting DJI. Have you checked the getChannelNumberValidRange before setting it?
Thanks,
Luce Luo DJI Dev Team
The Array integers contains [-1,-1]
Why does this interface receives -1 ?
mOcuSyncLink.getChannelNumberValidRange(new CommonCallbacks.CompletionCallbackWith<Integer[]>() {
@Override
public void onSuccess(Integer[] integers) {
}
@Override
public void onFailure(DJIError djiError) {
}
});
Agent comment from Luce Luo in Zendesk ticket #36484:
Dear Customer,
Thank you for contacting DJI. I think that's a problem, it should return a valid range. Can you please tell me the firmware of the drones and remote controller, Mavic 2 Zoom, Phantom 4pro v2.0? I will escalate this issue to the engineer to investigate further.
Thanks,
Luce Luo DJI Dev Team
Firmware for:
Mavic 2 Zoom:
- Drone: 01.00.0510
- Remote: 01.00.0510
Phantom 4 Pro:
- Drone: 01.00.5000
- Remote: 01.00.5000
Agent comment from Luce Luo in Zendesk ticket #36484:
Dear Customer,
Thank you for contacting DJI. OK, this issue has been escalated to the engineer to confirm further. It will cost some time and we will contact you again once any progress.
Thanks,
Luce Luo DJI Dev Team
Facing the same issue:
Tested Drones: Mavic 2 Zoom : ❌ Mavic 2 Pro: ❌ Mavic Enterprise Dual: ❌ Mavic Pro ✔️
@dji-dev can you please let us know the progress or workaround over this?
Agent comment from Luce Luo in Zendesk ticket #36484:
Dear Customer,
Thank you for contacting DJI. Sorry for the late reply. This issue will be fixed in the 4.15.1 version, but there is no a exact date, please attention to the official release.
Thanks,
Luce Luo
DJI Developer Support
°°°
Agent comment from Luce Luo in Zendesk ticket #36484:
尊敬的开发者,感谢您联系DJI 大疆创新
由于github不是我们主要的咨询渠道,您的问题可能跟进不及时。我们建议您通过填写表单( https://djisdksupport.zendesk.com/hc/zh-cn/requests/new )向我们反馈问题。或者您也可以在论坛发帖,与其它开发者交流。论坛链接:https://djisdksupport.zendesk.com/hc/zh-cn/community/topics
Dear developer, thank you for contacting DJI.
Since github is not our main consultation channel, your questions may not be followed up in time. We recommend that you fill in the form (https://djisdksupport.zendesk.com/hc/en-us/requests/new) to report problems to us. Or you can post in the forum to communicate with other developers. Forum link: https://djisdksupport.zendesk.com/hc/zh-cn/community/topics
°°°