2023-01-18 02:41 AM
Hello all,
I have a RS232 device (diagnose interface) that I want to replace with a Nucleo-G431KB board. To make it work I would like to use CDC (virtual port), but I need the RS232 specific signals, especially DTR/DSR, CTS/RTS... I looked in the example but I did not find anything regarding this.
Thanks for the help!
2023-01-18 04:21 AM
Not very simple. For outputs, you need to implement SetLineState request (easy). For inputs, you need to handle notification endpoint which service is completely omitted from ST CDC class implementation. So better search for some lightweight and complete STM32 USB CDC on github. AFAIK, there is some stuff like F103 USB-UART interface which should be a better starting point than CubeMX-generated code.
2023-01-18 04:33 AM
Only CTS and RTS hardware flow control USART is privided on STM read datasheet