What you do is right, but you need to set the data mode for Uart2. You can do it in your control handler like this:
bool fnBCN13A_UART2CtrlHandler(adl_fcmEvent_e Event)
{
switch(Event)
{
case ADL_FCM_EVENT_FLOW_OPENNED:
adl_atSendResponse ( ADL_AT_UNS, "\n\r FCM UART 2 is now opened \n\r");
if (adl_fcmSwitchV24State(bUART2Handler, ADL_FCM_V24_STATE_DATA) == OK)
adl_atSendResponse ( ADL_AT_UNS, "\n\r FCM UART 2 is now in data mode \n\r");
break;
case ADL_FCM_EVENT_FLOW_CLOSED:
adl_atSendResponse ( ADL_AT_UNS, "\n\r FCM UART 2 is now closed \n\r");
break;
}
return TRUE;
}
In order to change the baud rate aof UART2 you have to issue the command directly on UART2 when it is in AT command mode, or from your program like this: