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

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

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 sample code - USB connection - cannot view FPV

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.

No devices detected when remote debugging in Chrome Developer Tools from Windows 7 Enterprise to Samsung Galaxy Tab A

I am having problems with a web application on Chrome in Samsung Galaxy Tab A.
I want to troubleshoot them with Chrome's Developer Tools.
On tablets you do not have access to Chrome's Developer Tools, so you need to set up Remote Debugging.
The process, according to Google's official documentation, should essentially be:
1) Install the required driver on the PC so the tablet can be recognised.
2) Connect the tablet to the PC via USB cable.
2) On PC, go to Chrome > Developer Tools > Menu > More Tools > Remote devices
The tablet is not showing up as a device in developer tools in chrome on PC.
What I've Tried
I chatted to Samsung and they said to install Smart Switch PC_Setup.exe which would install driver so that Android device can be recognised.
As that didn't work I followed various post suggestions and installed:
SAMSUNG_USB_Driver_for_Mobile_Phones.zip (15.3MB) from here
SDK Platform-Tools for Windows (7.16MB) from here
sdk-tools-windows-3859397 (132MB) from the bottom of the page here
All of these contain exe files that I don't know how to use - if I double click them they just open and close a terminal.
Desired Behavior
To have tablet show as a device in Chrome developer tools.
To get my Samsung S7 to connect, I did the following.
Download Samsung's USB Driver for Windows from here: http://developer.samsung.com/galaxy/others/android-usb-driver-for-windows
Install the driver
Uninstall the driver. It's important to do this step, as your device won't connect until you uninstall. Strange, I know!
I initially reported this solution in the comments section here but I didn't think it was a legitimate solution. I've since been able to reproduce this on 2 Windows 10 Pro devices and others have also confirmed.
2019-05-10 Update
After a Windows Update, this stopped working so I went through the process outlined above again. Installed driver then uninstalled driver and everything started working again.
This was my solution to show device in Chrome Developer Tools:
1) Download SDK Platform-Tools for Windows (7.16MB) from here.
2) Extract zip file.
3) In Windows terminal run your equivalent of:
D:\Users\You\path_to_extracted_folder\adb.exe devices
At first I got:
[5203253125 - long number] unauthorised
And then I think I unplugged and replugged USB cable from tablet and there was a prompt on the tablet:
Allow USB Debugging?
The computer's RSA key fingerprint is:
blah blah etc
to which I click OK
And I can now see device in Chrome Developer Tools!
I find the best approach these days is to not use vendor-provided drivers. They're often difficult to install, and frequently come bundled with tools that aren't required and which get in the way. I tend to use the "universal" driver that can be downloaded from http://adbdriver.com/, which comes with a very simple, easy-to-use installer: run the installer, it gives a list of phones or tablets attached to your computer via USB, press a button and it installs the driver for the selected device.
Update for 05-2019
See the comment from Johnny Oshika in the approved answer. This works every time for me.
I think this is purely coincidental, but after I installed and
uninstalled Samsung's USB Driver for Windows from here
developer.samsung.com/galaxy/others/…
(SAMSUNG_USB_Driver_for_Mobile_Phones.zip (15.3MB) to be exact),
Chrome's dev tools detected my device. Not sure what made this work.
It could have been the numerous times I connected and disconnected the
cable. Not sure though. – Johnny Oshika Oct 18 '17 at 21:17

Play store Download to all devices?

I've configured an email ID (obviously gmail id) to 20 android devices all are situated at different place now if i want to install an application. to all device like Avast antivirus
if any device have already installed then how could i be able to do this.
Goal :
1: Install an application to all devices if not intalled.
2: devices may have already intstalled application then it will show install say if one have intall and other don't then how to install in all devices.
I am not too versed in telephony. I know for blackberries you have to have a blackberry [enterprise] server to manage devices in this fashion. I think one client for android is called Good, but if you do a search for android enterprise management, you probably could find others.

Resources