ComPort-Library icon indicating copy to clipboard operation
ComPort-Library copied to clipboard

Never fires any of the OnRx* Events...

Open 3FLLC opened this issue 1 year ago • 2 comments

I have a Serial Port tracing module (allows me to mimic a loopback).

It shows each character I send:

Comport1.WriteStr('ATZ'#13);

However, all of the OnRx* events - I do a show message for each... even added to your Test\ CPortUTestMainFm - nothing ever fires. Yet, I can open any Windows Terminal program - and when the Port tracing module shows "A", "T", "Z", #13, #10 - the windows terminal programs show: ATZ.

I have tried with Comport v4.11 and your code - neither work. Could someone shed some light - what am I missing??

3FLLC avatar Jul 22 '23 02:07 3FLLC

I have the same problem.... ! I am using CPort for, well, at least eight years and it always works very well. But now I have a new ESP-S2 board, the Wemos S2 Mini. With that board, I get NO DATA. I've looked in the sources, but have not yet been able to solve it. When i use Async Pro, Windows Terminal or PlatformIO Terminal, I do get data, in the same configuration. The Wemos is a new board which implements USB on the chip itself and sometimes it re-enumerates etc. Will look into this somewhat more...

RuudErmers avatar Sep 18 '23 10:09 RuudErmers

For today I solved my problem. I need to give the board (after opening) an extra RTS and set DTR high ?? I do not like these new boards which implement the CDC themselves...

RuudErmers avatar Sep 18 '23 12:09 RuudErmers