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

Transparent Transmission with Android #37

Closed
alexandrubichis opened this issue Sep 15, 2016 · 4 comments
Closed

Transparent Transmission with Android #37

alexandrubichis opened this issue Sep 15, 2016 · 4 comments

Comments

@alexandrubichis
Copy link

alexandrubichis commented Sep 15, 2016

I am trying to send data from the mobile device to the onboard device and everything works fine on iPhone but on Android it does NOT work. I am using A3 and LB2. Please note that on iPhone it works.

Android: returns "Error on upstream from Mobile Device to OES. Description:Unsupport"
DJIAircraft mAircraft = (DJIAircraft)DJISDKManager.getInstance().getDJIProduct();
DJIFlightController mFlightController = mAircraft.getFlightController();
String message = "Hello, World!";
mFlightController.sendDataToOnboardSDKDevice(message.getBytes(),
new DJIBaseComponent.DJICompletionCallback() {
@OverRide
public void onResult(DJIError pError) {
if (pError == null) {
DJIDialog.showDialog(getContext(),"Success upstream from Mobile Device to OES");
} else {
DJIDialog.showDialog(getContext(), "Error on upstream from Mobile Device to OES. Description:" + pError.getDescription());
}
}
});

Also please note that when calling the isOnboardSDKDeviceAvailable() method it returns false
DJIAircraft mAircraft = (DJIAircraft)DJISDKManager.getInstance().getDJIProduct();
DJIFlightController mFlightController = mAircraft.getFlightController();
String message;
if(mFlightController.isOnboardSDKDeviceAvailable()) {
message = "OnboardSDK device is available!";
}
else{
message = "OnboardSDK device is not available!";
}
DJIDialog.showDialog(getContext(), message);

@alexandrubichis
Copy link
Author

Hello, can anybody help me with this issue?

@dji-dev
Copy link
Contributor

dji-dev commented Sep 19, 2016

Hi @alexandrubichis, thanks for your feedback! We are investigating this issue, will get back to you once we have made any progress.

@dji-dev
Copy link
Contributor

dji-dev commented Sep 19, 2016

@alexandrubichis, after testing using the latest Android SDK 3.3, it works well. Please make sure that you are using the latest Android SDK 3.3, which you can download from our DJI Developer Website.

If you still have this issue, please let us know, thanks!

@alexandrubichis
Copy link
Author

Hi,

I've checked using the latest Android SDK 3.3 and is working now.

Thank you!

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