CTS signal on USB CDC
To follow up this thread, CTS signal on USB CDC - STMicroelectronics Community
I'm experiencing a similar issue.
USBser.sys have some problem
1. Only DTR Break can control alone
you can set DTR is 1 or 0, but RTS have change,RTS only change with DTR.
2. CDC Serial State
I have test this code, it send from Endpoint 81h successfully, but PC USB Host have no message
CDC_IN_Buf[0] = 0xA1; /* bmRequestType 0xA1 (10100001B) */
CDC_IN_Buf[1] = 0x20; /* 0x21 (SERIAL_STATE) */
CDC_IN_Buf[2] = 0x00; /* wValue LowByte */
CDC_IN_Buf[3] = 0x00; /* wValue HiByte */
CDC_IN_Buf[4] = 0x00; /* wIndex LowByte Default 0 */
CDC_IN_Buf[5] = 0x00; /* wIndex HiByte */
CDC_IN_Buf[6] = 0x02; /* wLength LowByte Serial State Length 0x0002 */
CDC_IN_Buf[7] = 0x00; /* wLength HiByte */
CDC_IN_Buf[8] = 0x14; /* Data LowByte */
CDC_IN_Buf[9] = 0x00; /* Data HiByte */
/*
CDC Serial State bit define (USB CDC 1.1 6.3.5 )
bit0 bRxCarrier 0x01
bit1 bTxCarrier 0x02
bit2 bBreak 0x04
bit3 bRingSignal 0x08
bit4 bFraming 0x10
bit5 bParity 0x20
bit6 bOverRun 0x40
*/
USBD_CDC_SetTxBuffer(&hUsbDeviceFS, CDC_IN_Buf, 10);
USBD_LL_Transmit(&hUsbDeviceFS, CDC_CMD_EP, CDC_IN_Buf, 10);