This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am trying to perform flow control using a USB serial port, but DSR/DTR does not work properly when communicating with the free software Teraterm.
Specifically, even if TM4C129 uses his USBDCDCSerialStateChange function to set his DSR to 0, there is no restriction on communication. Is there a solution?
Hi Muneto-san,
I'm going through the TivaWare usb_dev_cdcserial.c example and there is comment that says RTS/DTR are not supported.
//****************************************************************************
//
// Note:
//
// This example is intended to run on TM4C evaluation kit hardware
// where the UARTs are wired solely for TX and RX, and do not have GPIOs
// connected to act as handshake signals. As a result, this example mimics
// the case where communication is always possible. It reports DSR, DCD
// and CTS as high to ensure that the USB host recognizes that data can be
// sent and merely ignores the host's requested DTR and RTS states. "TODO"
// comments in the code indicate where code would be required to add support
// for real handshakes.
//****************************************************************************
//
// Set the state of the RS232 RTS and DTR signals. Handshaking is not
// supported so this request will be ignored.
//
//****************************************************************************
static void
SetControlLineState(unsigned short usState)
{
}
Reading this post further, it looks like you would need to modify the USB library in order to support the flow control.
Hi Muneto-san,
I'm going through the TivaWare usb_dev_cdcserial.c example and there is a comment that says RTS/DTR are not supported.
//****************************************************************************
//
// Set the state of the RS232 RTS and DTR signals. Handshaking is not
// supported so this request will be ignored.
//
//****************************************************************************
static void
SetControlLineState(unsigned short usState)
{
}
Reading this post further, it looks like you would need to modify the USB library in order to support the flow control.