Modifying the Onboard SDK to be able to listen to the drone broadcast without any sending. This allows to connect a second device on the UART_CAN2 port that is just logging what the drone is broadcasting.
sample/linux/common/dji_linux_helpers.cpp
osdk-core/api/src/dji_vehicle.cpp
osdk-core/api/inc/dji_vehicle.hpp
- The code needs to be launched in sniffing mode first to create the
ackBypass
file. This is done by leaving the line#define SNIF_DATA_MODE
uncommented inosdk-core/api/inc/dji_vehicle.hpp
- Compile the SDK and your code and run it. The file should be generated.
- Deactivate the sniffing mode by commenting the line
#define SNIF_DATA_MODE
inosdk-core/api/inc/dji_vehicle.hpp
. - Compile the SDK and your code again and it should use the
ackBypass
file to fake acknowledgement.
The code was only tested to get the vehicle object through the Linux environement class.
The DJI Onboard SDK allows you to connect your own Onboard Computer to a supported DJI vehicle or flight controller using a serial port (TTL UART). For full documentation, please visit the DJI Developer Site. Documentation regarding the code can be found in the OSDK API Reference section of the developer website.
OSDK 3.6 was released on 02 Feb 2018. This release adds powerful features on top of the stereo vision stack for M210/M210 RTK, and brings a number of bugfixes and performance improvements. Please see the release notes for more information.
OSDK 3.5 was released on 15 Dec 2017. This release brings new features for the Matrice 210 and 210 RTK aircraft. Developers will now have access to the live streams of the main (Zenmuse X4 and X5S) and FPV cameras. Additionally, more complete license information is added to the repository.
Aircraft/FC | Firmware Package Version | Flight Controller Version | OSDK Branch | Notes |
---|---|---|---|---|
M210/M210 RTK | 1.1.0410+ | 3.2.39.12+ | OSDK 3.4+ | Requires DJI Assistant 2 version 1.1.8 |
M600/M600 Pro | 1.0.1.65 | 3.2.41.9 | OSDK 3.4+ | |
1.0.1.65 | 3.2.41.9 | OSDK 3.3 | Firmware released 10/24/17 | |
1.0.1.60 | 3.2.41.5 | Not Supported | Firmware pulled due to instability | |
1.0.1.20 | 3.2.15.62 | OSDK 3.3 | 3.3 backward compatiblity released 10/18 | |
1.0.0.80 | 3.2.15.00 | OSDK 3.2 | ||
A3/A3 Pro | 1.7.1.5 | 3.2.36.8 | OSDK 3.4+ | |
1.7.1.5 | 3.2.36.8 | OSDK 3.3 | ||
1.7.0.5 | 3.2.15.50 | OSDK 3.2 | ||
1.7.0.0 | 3.2.15.37 | OSDK 3.2 | ||
N3 | 1.7.1.5 | 3.2.36.8 | OSDK 3.4+ | |
1.7.1.5 | 3.2.36.8 | OSDK 3.3 | ||
1.7.0.0 | 3.2.15.37 | OSDK 3.2 | ||
M100 | 1.3.1.0 | 3.1.10.0 | OSDK 3.4 |
You can get support from DJI and the community with the following methods:
- Github Issues or gitter.im
- Send email to [email protected] describing your problem and a clear description of your setup
- Post questions on Stackoverflow using dji-sdk tag
- DJI Forum