<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><span style="font-size: 14px;" class="">Hi Roger,</span><div class=""><span style="font-size: 14px;" class="">Here is what I tried on my Mac:</span></div><div class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div class=""><span style="font-size: 14px;" class="">1. On the Unix terminal I have opened 2 separate sessions.</span></div><div class=""><span style="font-size: 14px;" class=""> - on T1 I type</span></div><div class=""><span style="font-size: 14px;" class=""> screen /dev/ptyw1</span></div><div class=""><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><span style="font-size: 14px;" class=""> - on T2 I type</span></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><span style="font-size: 14px;" class=""> screen /dev/ttyw1</span></div></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><span style="font-size: 14px;" class="">When I type on T1 the text is displayed on T2</span></div><div class=""><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><span style="font-size: 14px;" class="">When I type on T2 the text is displayed on T1</span></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0); font-size: 14px;" class="">2. I close the 2 Unix terminals</span></font></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><span style="font-size: 14px;" class="">On the CoolTerm I open 2 separate sessions</span></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><span style="font-size: 14px;" class="">- on the first session I select the Serial Port</span></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><span style="font-size: 14px;" class=""> /dev/ptyw1</span></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><div class=""><span style="font-size: 14px;" class="">- on the second session I select </span><span style="font-size: 14px;" class="">the Serial Port</span></div><div class=""><span style="font-size: 14px;" class=""> /dev/ttyw1</span></div></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><div class=""><span style="font-size: 14px;" class="">When I type on CoolTerm that has opened /dev/ttyw1, the characters are displayed on the CoolTerm that has opened /dev/ptyw1: this seems OK</span></div></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><span style="font-size: 14px;" class="">When I type on CoolTerm that has opened /dev/ptyw1, NO characters are displayed on the CoolTerm that has opened /dev/ttyw1: this seems to me wrong</span></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><span style="font-size: 14px;" class="">3. Correct, I use “raw mode”</span></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><span style="font-size: 14px;" class="">Edo</span></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class=""></div></div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 4 Oct 2022, at 20:29, Roger Meier <<a href="mailto:roger.meier@pobox.com" class="">roger.meier@pobox.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Thanks for the feedback. I have a few follow up questions:<br class=""><div class=""><br class=""></div><div class="">- How did you create these two devices? Perhaps I can recreate this on my end. I assume this is on macOS?</div><div class="">- What do you mean by "row mode"? Do you mean "raw mode"?</div><div class="">- What was the indication of the problem you got? Did you get a particular error code?</div><div class="">- CoolTerm should close all serial ports when disconnecting. Are the devices working after you quit CoolTerm?</div><div class=""><br class=""></div><div class="">The support for virtual ports in CoolTerm for macOS and Linux is very rudimentary. When attempting to change any hardware settings (such baud rate, data bits, stop bits, parity, etc), I get an error 25 ('inappropriate ioctl for device'). My workaround is to simply ignore this particular error and open the port anyways since hardware settings, in theory, shouldn't matter for virtual ports. This is the only way I was able to get virtual ports working in CoolTerm.</div><div class=""><br class=""></div><div class="">Roger</div><div class=""><br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 1, 2022 at 1:19 AM Franzi Edo. <<a href="mailto:edo.franzi@ukos.ch" class="">edo.franzi@ukos.ch</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class=""><span style="font-size:14px" class="">Hi Roger,</span><div class=""><span style="font-size:14px" class="">Great! With the support of the virtual ports, CoolTerm is now really exceptional!</span></div><div class=""><span style="font-size:14px" class=""><br class=""></span></div><div class=""><span style="font-size:14px" class="">I tested a bit this implementation and I have to report a couple of problems:</span></div><div class=""><span style="font-size:14px" class=""><br class=""></span></div><div class=""><span style="font-size:14px" class="">1. I open 2 CoolTerm sessions. One session with /dev/ttyw2 and the second session with /dev/ptyw2</span></div><div class=""><span style="font-size:14px" class=""> - The communication works only in a row mode. However, even in row mode after some exchanges between the 2 sessions one terminated abruptly with an indication of a problem. Unfortunately, Coolterm doesn’t close the comm device and I cannot use it anymore.</span></div><div class=""><span style="font-size:14px" class=""><br class=""></span></div><div class=""><span style="font-size:14px" class="">2. It is the consequence of the point 1.</span></div><div class=""><span style="font-size: 14px;" class=""> - Coolterm doesn’t close the comm device after an error and the port cannot be use it anymore.</span></div><div class=""><font class=""><span style="font-size:14px" class=""><br class=""></span></font></div><div class=""><font class=""><span style="font-size:14px" class=""><br class=""></span></font></div><div class=""><font class=""><span style="font-size:14px" class="">Anyway, great for your first implementation.</span></font></div><div class=""><font class=""><span style="font-size:14px" class="">Regards</span></font></div><div class=""><font class=""><span style="font-size:14px" class="">Edo</span></font></div><div class=""><font class=""><span class=""><br class=""></span></font></div><div class=""><font class=""><span class=""><br class=""></span></font><div class=""><br class=""><blockquote type="cite" class=""><div class="">On 30 Sep 2022, at 23:31, Roger Meier <<a href="mailto:roger.meier@pobox.com" target="_blank" class="">roger.meier@pobox.com</a>> wrote:</div><br class=""><div class=""><div class="">Hi Edo,<div class=""><br class=""></div><div class="">I found a workaround for CoolTerm to work with virtual serial ports. Here is a build you can try</div><div class=""><br class=""></div><div class=""><a href="https://www.dropbox.com/s/z1eaddkistn5kvp/CoolTermMacBuild1106.zip?dl=0" target="_blank" class="">https://www.dropbox.com/s/z1eaddkistn5kvp/CoolTermMacBuild1106.zip?dl=0</a><br class=""><div class=""><br class=""></div><div class="">CoolTerm does not automatically recognize virtual ports, but you can add them via a ports.ini text file placed with in the same directory as the CoolTerm app. The build linked above already includes such a file with one entry for <font face="Courier New" class="">/dev/ttys001</font>. You can add any other such devices to this file, one per line. Make sure you restart CoolTerm after editing this file. After that, the ports from the ports.ini file will show up in the pull down menu in the connection settings.</div><div class="">I have tested this successfully with virtual ports created with socat as well as <a href="https://github.com/Jakeler/ble-serial" target="_blank" class="">ble-serial</a>.</div><div class=""><br class=""></div><div class="">Regards,</div><div class=""><br class=""></div><div class="">Roger</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Jan 28, 2022, at 5:08 PM, Roger Meier <<a href="mailto:roger.meier@pobox.com" target="_blank" class="">roger.meier@pobox.com</a>> wrote:</div><br class=""><div class=""><div style="overflow-wrap: break-word;" class="">There is known issue with the serial API I’m using and its compatibility with virtual ports. I opened a ticket with Xojo, the iDE I’m using to develop CoolTerm, to support virtual serial devices (created with scout, for example) in their serial API. Once that works, supporting it with CoolTerm won’t be a problem.<div class=""><br class=""></div><div class="">Roger</div><div class=""><br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Jan 25, 2022, at 12:40 AM, Franzi Edo. <<a href="mailto:edo.franzi@ukos.ch" target="_blank" class="">edo.franzi@ukos.ch</a>> wrote:</div><br class=""><div class=""><div style="overflow-wrap: break-word;" class=""><div class=""><span style="font-size:14px" class="">Hi all,</span></div><div class=""><span style="font-size:14px" class="">It would be nice to allow the usage of pseudo-com devices (i.e. macOS PTY, /dev/ptyXY).</span></div><div class=""><span style="font-size:14px" class="">This could open nice possibilities.</span></div><div class=""><span style="font-size:14px" class="">The popup menu for selecting the com device could be enriched with those devices (i.e. we can list such devices in a file in order to customize the selection (like for the baud rate)).</span></div><div class=""><span style="font-size:14px" class="">BR</span></div><div class=""><span style="font-size:14px" class="">Edo</span></div><div class=""><br class=""></div></div>_______________________________________________<br class="">CoolTerm-Betas mailing list<br class=""><a href="mailto:CoolTerm-Betas@the-meiers.org" target="_blank" class="">CoolTerm-Betas@the-meiers.org</a><br class=""><a href="http://the-meiers.org/mailman/listinfo/coolterm-betas_the-meiers.org" target="_blank" class="">http://the-meiers.org/mailman/listinfo/coolterm-betas_the-meiers.org</a><br class=""></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></div></blockquote></div>
</div></blockquote></div><br class=""></div></body></html>