[CoolTerm-Betas] CooltermV1.9.0 - Auto-Reconnect
Roger Meier
roger.meier at pobox.com
Tue Mar 30 14:36:20 EDT 2021
Hi Paul,
serial port error 22 means that the selected device is not currently enabled in the device manager. You’re correct in your assumption that in the case of your STM32 device, it might simply take too long for the serial port service is ready before CoolTerm tries to reopen. CoolTerm won’t try to re-connect until it sees the COM port again. Perhaps, in the case of your STM32 device, it takes some time after the port reappears before it’s actually ready. I will see if I can implement a delay between the time the port is rediscovered and the time CoolTerm attempts to reopen it.
Roger
> On Mar 25, 2021, at 7:20 AM, Paul Newf <paul.newf at gmail.com> wrote:
>
> Just tried this but doesn't seem to be working reliably for me :(
> a) I'm using a VCP (Virtual Com Port emulated through USB pins on an STM32L496).
> b) It does work when used with an FTDI serial cable (USB to UART cable adds a UART by USB)
> c) I haven't tested the Com Port through the STLink 14pin UART connection yet (I'll have a PCB with that in about a week)
>
> What happens with VCP on STM32:
> - Coolterm *sometimes* gives a popup: [CoolTerm - Warning][A Serial Port Error Occurred] [22: Error 22]
> -- The popup seems to always occur when I reset the STM CPU (loose VCP emulation while USB code restarts)
> -- The popup sometimes occurs if I disconnect USB cable, wait, reconnect (possibly every second time it works)
> -- Possibly related to timing of how fast port reappears?
>
> These Coolterm settings didn't seem to affect it?
> [disabled] Options - Misc - Automatically connect on open* (also tried enabled)
> [enabled] Options - Misc - Automatically disconnect on close* (Also Tried Disabled)
> *I tried a few combinations of these but didn't seem to affect Auto Reconnect of my VCP device
>
> From CoolTerm Change Log: 1.9.0b1
> - Added code to detect sudden removal of serial devices. When a port is currently open, it will be closed when the device suddenly disappears.
> - Added code to detect re-appearance of serial devices. If a device has suddenly disappeared before while the port was open, CoolTerm will attempt to re-open the port. This is useful when attached microcontrollers are being rebooted.
>
> Paul
> _______________________________________________
> CoolTerm-Betas mailing list
> CoolTerm-Betas at the-meiers.org
> http://the-meiers.org/mailman/listinfo/coolterm-betas_the-meiers.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://the-meiers.org/pipermail/coolterm-betas_the-meiers.org/attachments/20210330/0fe2299d/attachment.htm>
More information about the CoolTerm-Betas
mailing list