High Speed Data Channel
The header file of the high-speed data channel related functions is dji_high_speed_data_channel.h
. This document describes the key information and usage of the structure and function prototypes in the dji_high_speed_data_channel.h
file.
Catalog
Definition, Enum and Struct
T_DjiDataChannelBandwidthProportionOfHighspeedChannelFunction
DjiHighSpeedDataChannel_SetBandwidthProportion
DjiHighSpeedDataChannel_GetDataStreamRemoteAddress
DjiHighSpeedDataChannel_SendDataStreamData
DjiHighSpeedDataChannel_GetDataStreamState
Definition, Enum and Struct
typedef struct T_DjiDataChannelBandwidthProportionOfHighspeedChannel
typedef struct {
uint8_t dataStream; /*!< Bandwidth proportion of data stream, range from 0 to 100. */
uint8_t videoStream; /*!< Bandwidth proportion of video stream, range from 0 to 100. */
uint8_t downloadStream; /*!< Bandwidth proportion of download stream, range from 0 to 100. */
} T_DjiDataChannelBandwidthProportionOfHighspeedChannel;
Function
function DjiHighSpeedDataChannel_SetBandwidthProportion
Function:Set bandwidth proportion for the data stream, video stream and download stream of high-speed channel. | product:all |
T_DjiReturnCode DjiHighSpeedDataChannel_SetBandwidthProportion(
T_DjiDataChannelBandwidthProportionOfHighspeedChannel bandwidthProportion);
bandwidthProportion:bandwidth proportion of each stream of high-speed channel. The Sum of bandwidth proportion must equal 100.
Return
The details for the return code please refer to: DjiErrorCode
function DjiHighSpeedDataChannel_GetDataStreamRemoteAddress
Function:Get the network remote address for sending data stream. | product:all |
T_DjiReturnCode DjiHighSpeedDataChannel_GetDataStreamRemoteAddress(char *ipAddr, uint16_t *port);
ipAddr:the remote ip address for sending data stream.
port:the remote port for sending data stream.
Return
The details for the return code please refer to: DjiErrorCode
发送数据流数据
function DjiHighSpeedDataChannel_SendDataStreamData
Function:Send data to mobile end via data stream of the data channel. | product:all |
T_DjiReturnCode DjiHighSpeedDataChannel_SendDataStreamData(const uint8_t *data, uint16_t len);
data:pointer to data to be sent.
len:length of data to be sent via data stream, and it must be less than or equal to 65000, unit: byte.
Return
The details for the return code please refer to: DjiErrorCode
function DjiHighSpeedDataChannel_GetDataStreamState
Function:Get data transmission state of "dataStream" channel. User can use the state as base for controlling data | product:all |
T_DjiReturnCode DjiHighSpeedDataChannel_GetDataStreamState(T_DjiDataChannelState *state);
state:pointer to "dataStream" channel state.
Return
The details for the return code please refer to: DjiErrorCode