Provide your DJI OSDK App ID and Key to your application. In the samples, this is done in the form of a config file parsed before activation.
Set your serial port and baudrate in your application. In the samples, this is done in the form of a config file parsed before opening the serial port.
Make sure you have permissions to read from and write to the serial and USB port. Follow the Environment Setup Guide for instructions on how to do this.
Make sure your Aircraft/FC has more than 50% battery power.
If you are using LightBridge 2/ S-BUS, make sure your remote controller is powered on and paired. If you are using A3/N3 without an RC, consult the Environment Setup for more.
Connect your Aircraft/FC's USB port to a computer running DJI Assistant 2
On the SDK Page confirm that
The box titled Enable API Control is checked.
The baudrate is the same as the one provided on the onboard computer. If you had to change this setting, re-start the FC/Aircraft.
Not all the broadcast telemetries are set to Do Not Send, i.e. at least something is broadcasting.
Upgrade to the newest firmware that is officially supported by the OSDK version you are using.