<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hmm, that’s weird. I’m connected to a virtual device and communicating in line mode just fine (see screenshot below). What is it exactly that isn’t working for you? <div><br></div><div><img width="712" alt="PastedGraphic-1.png" src="cid:AD16465A-8360-4EBA-86AD-6DE35FF64D53"></div><div><br><div><br><blockquote type="cite"><div>On Nov 30, 2022, at 5:00 AM, Franzi Edo. <edo.franzi@ukos.ch> wrote:</div><br class="Apple-interchange-newline"><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><span style="font-size: 14px; font-style: normal;"><font face="Monaco">Hi Roger,</font></span></div><div><span style="font-size: 14px; font-style: normal;"><font face="Monaco">You have understood correctly.</font></span></div><div><span style="font-size: 14px; font-style: normal;"><font face="Monaco">I am aware that the receiver needs more work.</font></span></div><div><span style="font-size: 14px; font-style: normal;"><font face="Monaco">Finally, I have written  my code ;-)</font></span></div><div><span style="font-size: 14px; font-style: normal;"><font face="Monaco">By chance, you have implemented what I have suggested time ago (the virtual ports /dev/ttyw0… etc).</font></span></div><div><font face="Monaco"><span style="font-size: 14px;">I have just written a Unix tool that intercepts the communication and dispatches them to the CoolTerm windows.</span></font></div><div><span style="font-size: 14px; font-style: normal;"><font face="Monaco">It works like a charm …</font></span></div><div><span style="font-size: 14px; font-style: normal;"><font face="Monaco"><br></font></span></div><div><span style="font-size: 14px; font-style: normal;"><font face="Monaco">Maybe just a question:</font></span></div><div><span style="font-size: 14px; font-style: normal;"><font face="Monaco">I noticed that when I select a virtual channel on CoolTerm (i.e. /dev/ptyw0), I can use only the "Raw Mode" and not the "Line Mode” (in the menu Terminal Mode).</font></span></div><div><span style="font-size: 14px; font-style: normal;"><font face="Monaco">Is it a bug or it is a technical issue?</font></span></div><div><span style="font-size: 14px; font-style: normal;"><font face="Monaco"><br></font></span></div><div><span style="font-size: 14px; font-style: normal;"><font face="Monaco">Anyway, thank you for the implementation of the virtual devices :-)</font></span></div><div><span style="font-size: 14px; font-style: normal;"><font face="Monaco">Regards</font></span>,</div><div><span style="font-size: 14px; font-style: normal;"><font face="Monaco">Edo</font></span></div><div><font><span style="caret-color: rgb(0, 0, 0);"><br></span></font></div><div><font><span style="caret-color: rgb(0, 0, 0);"><br></span></font><div><br><blockquote type="cite"><div>On 28 Nov 2022, at 20:23, Roger Meier <roger.meier@pobox.com> wrote:</div><br class="Apple-interchange-newline"><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi Edo,<div><br></div><div>Let me make sure I correctly understand the concept you are describing:</div><div>- You have an embedded target with a single UART</div><div>- You create multiple virtual ports on your computer that are all bridged to the physical UART on the target</div><div>- You open multiple CoolTerm windows, each one connected to one of the virtual ports</div><div>- This allows you to send data to the target from the different CoolTerm windows</div><div>- You want the data sent from each CoolTerm window to be send with a different specific header string in front of the data and a specific footer string at the and of the data so that the target knows who sent the data.</div><div><br></div><div>Am I understanding this correctly?</div><div><br></div><div>Assuming this is what you are requesting, then I have good news for you. I have a feature on my list of future enhancements that will allow the user to prefix and suffix any sent data with macros they defined. So, for your case you could create two macros “+++0” and “---0” in the first CoolTerm window and have any send date prefixed and suffixed with these macros. Then for the 2nd CoolTerm window, you would define your macros like this: “+++1” and "---1”, and so on for other CoolTerm windows. The macros are saved with the connection setting for each CoolTerm window, so you only have to set this up once for each CoolTerm window.</div><div>I don’t know when I will have an opportunity to implement this. The earliest to expect this would probably be v2.1.0. I’m currently wrapping up 2.0.1.</div><div><br></div><div>This would take care of the transmission side of what you’re after. However, I don’t currently have any plans to support the receive side of your request. I assume that anything your target sends back is received in all the connected CoolTerm windows, correct? And you want for each CoolTerm window to recognize the data based on the correct header and footer strings and ignore any data that is intended for a different CoolTerm window?</div><div><br></div><div>I’m afraid this is beyond the scope of the CoolTerm development. However, as you may know, CoolTerm is fully scriptable. The easiest way to script CoolTerm is with Python using the CoolTerm.py module that is included in the download. This lets you control multiple windows very easily. It should be pretty easy to implement the functionality you seek this way.</div><div><br></div><div>Regards,</div><div><br></div><div>Roger</div><div><br></div><div><div><br><blockquote type="cite"><div>On Nov 27, 2022, at 1:56 AM, Franzi Edo. <edo.franzi@ukos.ch> wrote:</div><br class="Apple-interchange-newline"><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><font face="Monaco"><span style="font-style: normal;">Hi all,</span></font><div><font face="Monaco"><span style="font-style: normal;">Maybe a very useful functionality to add to CoolTerm.</span></font></div><div><font face="Monaco">On the embedded targets, often we have only 1 physical uart. The idea is to let CoolTerm to open more terminal sessions and encapsulate/decapsulate the messages sent/received on the physical uart.</font></div><div><font face="Monaco"><span style="font-style: normal;">Ex.</span></font></div><div><font face="Monaco"><span style="font-style: normal;">CoolTerm on Virtual com 1 managed by the Window 1: send “message xyz”</span></font></div><div><div style="caret-color: rgb(0, 0, 0);"><font face="Monaco"><span style="font-style: normal;">CoolTerm on Virtual com 2 managed by the Window 2: send “lalala”</span></font></div></div><div><div style="caret-color: rgb(0, 0, 0);"><font face="Monaco"><span style="font-style: normal;">CoolTerm on Virtual com 3 managed by the Window 3: send “okokokok”</span></font></div></div><div><font face="Monaco"><span style="font-style: normal;"><br></span></font></div><div><font face="Monaco">These messages have to be encapsulated with a programmable header/footer before the sending on a selected physical uart.</font></div><div><font face="Monaco"><span style="font-style: normal;">So, CoolTerm should operate in this way for sending all the </span>messages</font></div><div><font face="Monaco"><span style="font-style: normal;">Example of header/footer +++0 ---0</span></font></div><div><font face="Monaco"><span style="font-style: normal;"><br></span></font></div><div><font face="Monaco"><span style="font-style: normal;"><br></span></font></div><div><font face="Monaco"><span style="font-style: normal;">+++0<font><span style="caret-color: rgb(0, 0, 0);">message xyz---0</span></font></span></font><span style="caret-color: rgb(0, 0, 0); font-family: Monaco;">+++1</span><span style="caret-color: rgb(0, 0, 0); font-family: Monaco;">lalala---</span><font><font face="Monaco"><span style="caret-color: rgb(255, 255, 255);">1</span></font></font><span style="caret-color: rgb(0, 0, 0); font-family: Monaco;">+++3</span><font face="Monaco">okokokok---3  sent on the uart</font></div><div><font face="Monaco"><br></font></div><div><font face="Monaco"><span style="caret-color: rgb(0, 0, 0);">At the target level is then easy to decapsulated the messages and use them in the appropriate environments.</span></font></div><div><font face="Monaco"><span style="caret-color: rgb(0, 0, 0);"><br></span></font></div><div><font face="Monaco"><span style="caret-color: rgb(0, 0, 0);">Of course, the opposite (from the target to the CoolTerm uses the same mechanism).</span></font></div><div><font face="Monaco"><span style="caret-color: rgb(0, 0, 0);">What do you think?</span></font></div><div><font face="Monaco"><span style="caret-color: rgb(0, 0, 0);">BR</span></font></div><div><font face="Monaco"><span style="caret-color: rgb(0, 0, 0);">Edo</span></font></div><div><font face="Monaco"><span style="caret-color: rgb(0, 0, 0);"><br></span></font></div><div><font face="Monaco"><span style="caret-color: rgb(0, 0, 0);"><br></span></font></div></div>_______________________________________________<br>CoolTerm-Betas mailing list<br>CoolTerm-Betas@the-meiers.org<br>http://the-meiers.org/mailman/listinfo/coolterm-betas_the-meiers.org<br></div></blockquote></div><br></div></div></div></blockquote></div><br></div></div></div></blockquote></div><br></div></body></html>