Xiao Long
lvl.2
Hong Kong
Offline
|
About how to connect and use the DJI M300 RTK OSDK API interface,
after groping and summing up some experience,
here is a summary to help you quickly use the M300 OSDK~
1. Interface changes
The OSDK API interface of DJI M300 RTK has changed significantly compared to M210
First: the position is switched from the tail of the aircraft to the top of the aircraft
Second: the interface changed from the H2.54mm pin header interface to the USB TypeC interface
2. How to use the new OSDK API interface?
The first way
Direct purchase of DJI's official OSDK adapter board, Product manuals https://dl.djicdn.com/downloads/matrice-300/20200617/OSDK_Expansion_Module_Product_Information.pdf
as shown below
According to the OSDK official website document description, one end of this adapter board is a USB Type-C interface, which is used to access the OSDK interface on the M300.
The other end to the OSDK UART interface, OSDK USB interface, XT30 power supply interface, and other expansion interfaces (there is no definition on the official website at present).
But We can't buy this adapter yet. I have contacted DJI. This product has not been officially launched in the DJI mall, but it can be expected that it will be officially launched at the end of July or early August.
The second way
Make OSDK extension cable/board by yourself!
In fact, don't worry about can not buying the official OSDK adapter, we can make and design by ourselves.
Because the DJI official has given the M300 RTK OSDK interface definition, you can refer to the description of the official OSDK documentation
Documentation link: https://developer.dji.com/document/1bb1b2dc-9694-4d6b-ad43-fa69c5a10400
3. How to DIY OSDK interface adapter cable/board?
1. Understand TypeC interface
The DJI M300 RTK OSDK API interface uses the USB Type C interface standard
But it should be noted that the interface on the aircraft is a male plug!
So you have to buy a USB Type C female plug! The connection type is USB Type C 24 PIN female plug
The cable can use a 24PIN copper conductor, four pairs of power lines rated current > 5A.
2. Understand the interface definition
As shown in the following figure, based on the direction of the drone's progress
The A1 -> A12 is defined on the outside of the drone
And B12 -> B1 is defined on the inside of the drone.
3. Circuit connection diagram
Be careful:
1. The VCC of USB and UART cannot be connected to VCC, because the VCC is 24V and can be set to dangling status
2. The B6 pin must be set to dangling status, it seems to be related to the USB ID
3. The B7 pin and B8 pin must be connected to the GND, it seems to be used to detect OSDK device and USB devices
4. It is recommended to use all eight pins of GND and VCC to ensure the power supply and stability
5. Other pins that are not marked in the figure, can be set to dangling status if not used
6. OSDK Type C interface is directional. Once the line sequence is defined, it cannot be connected in reverse.
The corresponding connector can also be designed according to the anti-reverse installation structure (three spikes) of the OSDK interface.
7. Rated current requirement of four pairs of power lines > 5A
4. How to quickly test and verify?
I bought a USB TypeC female puls test board on the electronic mall.
Then connect the UART and USB interface with Dupont cable, and can directly start development and use! !
Hope this helps!
|
|