If I want to send an string from hyper terminal to Fastrack supreme via UART1. What things I have to do to get that string? I mean that if we have a handler or similar thing to get strings sent to UART1 (or UART2)? Please help me!
The first thing to remember is that the UART neither knows nor cares what caused the string to be sent - all that matters is that characters arrive at the UART’s input (with the control lines in the appropriate states).
Hyperterminal (or any other application) is irrelevant.
Study the section in the ADL User Guide about the “Flow Control Manager” - FCM…
TRACE ((1, "DATATRACE Control Event Handler : %d", event));
switch(event) {
case ADL_FCM_EVENT_FLOW_OPENNED: // 0
sReturn = adl_fcmSwitchV24State(DataTRACE_fcmHandle, ADL_FCM_V24_STATE_DATA);
if (sReturn == OK) {
TRACE ((1, "Successful switch to DATA mode and display NMEA traces"));
} else {
TRACE ((1, "ERROR switching to DATA mode and display NMEA traces: %d",sReturn));
}
break;
case ADL_FCM_EVENT_FLOW_CLOSED:
break;
case ADL_FCM_EVENT_V24_DATA_MODE: // 2
break;
case ADL_FCM_EVENT_V24_DATA_MODE_EXT:
case ADL_FCM_EVENT_V24_AT_MODE:
case ADL_FCM_EVENT_V24_AT_MODE_EXT:
break;
case ADL_FCM_EVENT_RESUME: // 6
break;
case ADL_FCM_EVENT_MEM_RELEASE: // 7
case ADL_FCM_EVENT_V24_DATA_MODE_FROM_CALL:
case ADL_FCM_EVENT_V24_AT_MODE_FROM_CALL:
break;
}
return bReturn;