AnsweredAssumed Answered

K60 UART4 with HW-FlowControl

Question asked by Tobias Bystricky on Jan 31, 2013
Latest reply on May 9, 2014 by David Nomiddlename Wu

Hello,

I try to enable the HW-FlowControl on UART4 on a K60DN512. Therefore I use the PE Component Init_UART. After initialising the component I open the device with fopen:

MODEMUART_Init(); <= PE init function


pfile = fopen("ittye:", (pointer)(IO_SERIAL_RAW_IO | IO_SERIAL_HW_FLOW_CONTROL | IO_SERIAL_TRANSLATION | IO_SERIAL_ECHO));
ioctl(pfile, IO_IOCTL_SERIAL_SET_FLAGS, (pointer)(IO_SERIAL_RAW_IO | IO_SERIAL_HW_FLOW_CONTROL | IO_SERIAL_TRANSLATION | IO_SERIAL_ECO));
  if (pfile == NULL) {
  printf("Cannot open the other IO device\n");
  }
  for(;;){
  write(pfile, "AT\n", 4);
  _time_delay(1000);
  }

 

Now I can see that there are some bits on the tx line of the UART4 but RTS and CTS lines are not working.

I found out that in the command function _kuart_polled_ioctl in the file serl_pol_kuart.c there is no implementation for the case IO_IOCTL_SERIAL_SET_HW_SIGNAL. If I understand it right there is no implementation for HW-FlowControl for a UART in MQX. Is that right?

 

Does anyone have an example of using HW-FlowControl on a UART?

Thanks and regards

Tobias

 

Added PE component settings

Attachments

Outcomes