Help - Any example on using FCM for UART?

Hi awneil,

I am just a bit confused on how the Data Handler and the Control Handler function separately.
In my Control Handler, I have this code:

case ADL_FCM_EVENT_V24_DATA_MODE:
    len = sizeof(myArray);
    adl_fcmSendData(handle, myArray, len);

As far as I know, this will only send data to my external device (meter). But when I spy the port using a serial port monitor, this code prints the data sent to the external device and the data received from the external device. So the output contains both the sent and the received. Should the received data only be in the Data Handler?
I also have this code in my Data Handler but it seems it is not outputting something:

bool fcmDataH(u16 dataLen, u8 *data){
    ascii buf[256];
    /* check for ESC to switch to AT MODE */
    if(data[0] == 27) {
        adl_fcmSwitchV24State(handle,ADL_FCM_V24_STATE_AT);
    }
    wm_sprintf(buf, "Data: %s; Len: %d\r\n", data, dataLen);
    adl_atSendResponse(ADL_AT_RSP, buf);

    return TRUE;
}

So currently, I am still trying to figure out when and how the Data Handler is called.
I might be missing something.

Thanks.