We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I'm working with uVision 5.15 and RL-USB with RTX to develop a USB CDC application. I used the function USBD_CDC_ACM_DataSend to send data over the USB com port. The application continuously (250ms step) sends a keepalive message through the USB com port to the host, the problem is that if the com port is closed after some messages the USBD_CDC_ACM_DataSend stops to work and also return 0 as byte sent, also opening the connection does not solve the problem. Someone knows how to solve this problem? Is this a RL-USB bug?
Regards
Kev said:can't seem to read data that I send from the MCU to the PC in C#. I can however, using teraterm
Check your control signal settings - DTR, RTS ...
You could also use something like https://www.eltima.com/products/serial-port-monitor/ to see what's happening at the PC end - and where you C# differs from Teraterm ...
EDIT
I'm not affiliated with nor sponsored by Eltima - but I have used their Serial Port Monitor with success in debugging such things.