UART2 on Q24PL can't receive data


#1

I´m opening UART2 and I’m able to send data through it after ADL_FCM_EVENT_V24_DATA_MODE event in UART2CtrlHandler(). The UART2DataHandler() looks like this:

bool UART2DataHandler(u16 DataLen, u8 * Data)
{
adl_atSendResponse ( ADL_AT_UNS, “\n\r UART2DataHandler \n\r”);
adl_atSendResponse ( ADL_AT_UNS, Data);
return TRUE;
}

But I receive none of the messages above on UART1.


#2

Note that the ‘Data’ parameter is not a ‘C’ string - so you can’t just pass it to adl_atSendResponse…!


#3

Ok, but I dont receive “\n\r UART2DataHandler \n\r” either. The same code works for UART1


#4

Sergio,

Did you ever figure this out? I’m having a similar problem.

Coleman


#5

Where do you want to receive this message - through UART1 or UART2?