DJI Windows sample code - USB connection - cannot view FPV - dji-sdk

Using VS 2019 and Windows SDK 0.3.1 I cloned and executed the SDK sample code correctly. Trying to connect to the smart controller of Mavic 2 doesn't work.
FPV page says 'turn work mode green first'. I guess there is no outgoing serial communication from the sample code towards controller.
Connection with Assistant 2 Mavic does work normal.
Device manager shows under Com and LPT: CDC Serial (Interface 1) COM4 and under USB devices: ADB interface.
Component handler doesn't communicate either with the controller.
I am clearly missing something in setting up correctly the USB connection between the sample code and controller.
Thx

I think I had a similar issue recently Martin. I was trying to follow the DJI/Windows SDK tutorials and got the DJISdkManager to register but could not invoke the FPV on my Mavic 2 Pro.
I ended up following the guidelines here
Turns out I think I had the wrong version of DJI Assistant 2 installed (legacy from having a Mavic 1) I updated and used the Zadig program to install a WinUSB driver for the remote controller. After that, I got the FPV working handily enough.
This might help.
Edit: Link to the correct version of the software I had to install.

Just got the reply from DJI dev.
Windows SDK is not compatible with the smart controller, only with regular controller.

Related

Windows 10 Swift Pair (BLE)

At the moment, I am developing an Android-based BLE peripheral and I'm hoping to integrate Windows 10 Swift Pair, following this documentation: Microsoft Swift Pair
I have ensured that my Windows version is above 1803 and have ensured that the "Show notifications to connect using Swift Pair" box is checked.
I followed the payload structure defined in the documentation.
I double confirmed the BLE advertise data by using an Android Test App and a Windows Test App (On the same PC I'm getting this to work). I'm sure that I'm advertising the correct payload.
Unfortunately, the notification of swift pairing did not pop up and I'm at loss at what I'm missing. It will be great if anyone could tell me what's wrong!
Updates 17 Dec 2020
The notifications are showing now. The only change I made was to increase the txpower of the Advertisement.
Currently, I'm facing another issue. Pairing doesn't work on all PC. I tested with 2 PC (that's every PC in my inventory). 1 work and 1 doesn't.
Working PC: BLE 5.0 (LMP 9.256) |
Not Working PC: BLE 5.1 (LMP 10.256)
Any idea why this is happening?

Using DJI SDK offline

I am starting to get used to Android DJI Mobile SKD... Even successfully got DJI FPV sample code running on my Phantom 4 Pro+ GL300E screen (SDK 22).
My problem: it seems that an app using the SDK has to get the internet connection to be able to register to DJI before doing anything.
Such process apparently doesn't happen only once, but occurs every time I run my application.
My need: I should be able to use my UAV in the countryside, without any internet connection of course: will I be able to use a DJI-SDK based application in such conditions?
You only need to register the SDK once via internet. After the first successful registration, the app remembers it and you can use your app on offline mode. You will however need to activate it again if you make a clean installation.
Btw:
You don't need to have a SIM inserted to use your App.
You don't need to login to your DJI account to use your App.
The SDK seems to connect to the internet on it's own from time to time. The purpose is unknown to me but I guess it's e.g. to retrieve updates for the flySafe Database (FlyZoneManager).
To ensure the SDK does not connect to the internet apart from app activation you can additionally use the LocalDataManager (LDMManager) accessible from the DJISDKManager:
if(DJISDKManager.getInstance().getLDMManager().isLDMSupported()) {
DJISDKManager.getInstance().getLDMManager().enableLDM();
}

DJI Windows SDK Sample Code: Cannot view FPV mode on Mavic 2 Pro

I am using the example code provided by DJI for Windows SDK to connect with a Mavic 2 Pro. I can receive the name of the drone, subscribe to update on velocities and see them. However, I cannot get any video when I click on the FPV nor use the playback, where workmode turns on green but then there is a time out when I click on reload:
LaunchFileDataTask get files:REQUEST_TIMEOUT: Switch Mode or try again
I am using:
Visual Studio Professional 2017 Version 15.9.5
Latest version of the drone and radio controller.
Latest version of Windows SDK
Windows Enterprise Version 1803
I have installed all the drivers and done the Guidance to Connect with Mavic 2 Pro. I have checked on Device Manager when the controller is connected and I see the following devices:
Vision (Interface 3)
DJI USB Virtual COM
Also, I have uninstall and install all DJI's program, and drivers.
Solution
So, after several attempts and different approaches I solved the problem. I figure out that all the drivers provided on DJI Assist 2 for Mavic and DJI Simulator do not comply with the requirements to get the images from the Mavic. So the solution was to use zadig. Once on the program and the controller on and plug to the computer, select Options->List all devices. Now, it should be visible the driver libusb, selected and then click on replace driver.
Lol I was doing beta test for DJI WSDK. didn`t encounter this. The only problem is the limited selection of drone.
Here is a checklist, cross them out 1 by 1 to rule out the issue.
USB Authority Configuration in UWP
Connection sequence
Make sure that before connecting using your cable, your P4P V2.0 remote controller is off.
Connect the remote controller to your computer using Micro-USB cable.
Turn on your remote controller.
Make sure you have not open the DJI software like DJI Assistant 2.
DJI Windows SDK Applications are not able to communicate with the aircrafts at the same time.
3 Make sure that you have installed DJI Assistant 2 and have enabled all the driver intallation while installing DJI Assistant 2.
4 WinUSB Driver
Your error seems is a connection issue. But once you pass that there are a few more thing you have to check
make sure you have FFMpeg dlls in the directory
I`ll add more if I remember more. Currently, this is all I can think of

Is scanning BLE devices in Windows 10 under Cordova possible?

I wrote an app with cordova (8.1.2) to communicate with a BLE (blutooth low energy) device. I got it running on Android, and I managed to build a Windows 10 version too.
But under Windows 10 no device will be found.
If the evothings.ble.startScan function is called, no error callback function is called, but unfortunately the onDeviceFound callback is never called too.
If I try to connect to my device via the Windows 10 Control Center the device is found and I also managed to connect to it.
The answerable question is: Is scanning for BLE devices supported by the evothings cordova plugin under Windows 10? If so, what do I have to do to get it running?
Plugin source: https://github.com/evothings/cordova-ble
In the evothings website (https://evothings.com/evothings-studio-2-2-0-released/) there is a broken link to a forum, so I cannot ask this question there.

WP7 Developpement: How to test an application on multiple devices? (without any purchase)

I have a question about an application I developed for radio. It allows you to listen todifferent radio stations.
I installed on my Omnia 7 without problems, it works. Microsoft refuses, explaining that the application does not work.
Is it logical that the application works on my phone, not on their (Windows TestedPhones: HTC 7 Trophy, Samsung Focus / SGH-i91)?
And how to debug a problem like this? I do not know where does the fault and the emulator will be very useful to me.
Thanks for help
Kevin
If your app failed at certification, you should have been provided a failure report document that indicates the reason why and how to reproduce the problem.
Source

Resources