# Detecting Receiving Card

For all operations related to receiving card, detecting the card is the first step. You can know the number and information of the receiving cards after successful detection. Before detecting the receiving card, you must detect the sender successfully.

# The following steps are required for detecting the receiving card and obtaining its information

Step 1. Detect the video controller.
Step 2. Detect the receiving card.
Step 3. Get the information of the receiving card.

Below is an example of obtaining information of the first receiving card connected to the first Ethernet port of the first video controller:

    // detect device info
    CLTSearchAllDevice();

    // get device counts
    int deviceCount = CLTGetDeviceCounts();
    if (deviceCount <= 0) {
        return;
    }

    int scIndex = 0;                // device index
    int portIndex = 0;              // port index
    int rcvIndex = 0;               // receiving card index

    // detect receiving card information
    SQuickDetectRcvsParam param;
    param.bDetectType = riut_for_calibration;
    HRESULT hr = CLTReceiverDetectAll(scIndex, portIndex, param);
    if(FAILED(hr)){
        return;
    }

    SRcvCardInfo* pRcvCardInfo = CLTReceiverGetInfoEx(scIndex, portIndex, rcvIndex);
    if(nullptr == pRcvCardInfo){
         return;       
    }

    int totalTime = pRcvCardInfo->m_totalTime;