<div dir="ltr">Thanks for the step to reproduce this. I will try this over the weekend.<div><br></div><div>Meanwhile, do you know if the virtual device ptyw0 requires any type of flow control? CoolTerm sends data in larger chunks in Line Mode and when sending text files (as defined by the "Packet Size" option under "Transmit Options"). I wonder if perhaps ptyw0 can't handle more than one character at the time. Can you try the following:</div><div>- Enable the "Use transmit character delay" feature under the "Transmit Options" and play around with the delay (3ms by default) to see if it starts working with certain values.<br></div><div><br></div><div>Roger</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 1, 2022 at 11:16 PM Franzi Edo. <<a href="mailto:edo.franzi@ukos.ch" target="_blank">edo.franzi@ukos.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div><font face="Monaco">Hi Roger,</font><div><font face="Monaco">Thank you for your preliminary investigation.</font></div><div><font face="Monaco">Try this:</font></div><div><font face="Monaco"><br></font></div><div><font face="Monaco">1. open a unix terminal on your Mac</font></div><div><font face="Monaco">2. type: screen /dev/ttyw0 460800</font></div><div><font face="Monaco">3. Now open CoolTerm</font></div><div><font face="Monaco">4. Select the device /dev/ptyw0</font></div><div><font face="Monaco">5. Connect</font></div><div><font face="Monaco"><br></font></div><div><font face="Monaco">Mode Raw in CoolTerm</font></div><div><font face="Monaco">- Everything you type in the screen (unix terminal) is displayed on CoolTerm;</font></div><div><font face="Monaco">  This is OK</font></div><div><div style="color:rgb(0,0,0)"><font face="Monaco">- </font><span style="font-family:Monaco">Everything</span><font face="Monaco"> you type in the CoolTerm is displayed on the </font><span style="font-family:Monaco">screen (unix terminal)</span><font face="Monaco">;</font></div><div style="color:rgb(0,0,0)"><font face="Monaco">  This is OK</font></div><div style="color:rgb(0,0,0)"><font face="Monaco">- In ColTerm I try to send a text file (Send Text/Binary files). CoolTerm send only 1 char;</font></div><div style="color:rgb(0,0,0)"><font face="Monaco">  This is not OK</font></div><div style="color:rgb(0,0,0)"><font face="Monaco"><br></font></div><div style="color:rgb(0,0,0)"><div><font face="Monaco">Mode Line in CoolTerm</font></div><div><div><font face="Monaco">- </font><span style="font-family:Monaco">Everything</span><font face="Monaco"> you type in the screen (unix terminal) is displayed on CoolTerm;</font></div><div><font face="Monaco">  This is OK</font></div><div></div></div></div><div><div style="color:rgb(0,0,0)"><font face="Monaco">- </font><span style="font-family:Monaco">Everything</span><font face="Monaco"> you type in the CoolTerm is NOT completely displayed on the </font><span style="font-family:Monaco">screen (unix terminal) after the CR</span><font face="Monaco">;</font></div><div style="color:rgb(0,0,0)"><font face="Monaco">  It is displayed only the first character; this is not OK</font></div></div><div><div style="color:rgb(0,0,0)"><font face="Monaco">- In ColTerm I try to send a text file (Send Text/Binary files). CoolTerm send only 1 char;</font></div><div style="color:rgb(0,0,0)"><font face="Monaco">  This is not OK</font></div></div><div><font face="Monaco"><br></font></div><div><font face="Monaco">Any idea?</font></div><div><font face="Monaco">I noticed that for your test you opened /dev/ttys001. On my machine I cannot use this device.</font></div><div><font face="Monaco">The CoolTerm I use is the latest beta V2.0.1b3</font></div><div><font face="Monaco"><br></font></div><div><font face="Monaco">BR</font></div><div><font face="Monaco">Edo</font></div></div></div><div><font face="Monaco"><br></font></div><div><br><blockquote type="cite"><div>On 2 Dec 2022, at 03:39, Roger Meier <<a href="mailto:roger.meier@pobox.com" target="_blank">roger.meier@pobox.com</a>> wrote:</div><br><div><div>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><span id="m_5691950234268537450m_7379205778882829869cid:AD16465A-8360-4EBA-86AD-6DE35FF64D53"><PastedGraphic-1.png></span></div><div><br><div><br><blockquote type="cite"><div>On Nov 30, 2022, at 5:00 AM, Franzi Edo. <<a href="mailto:edo.franzi@ukos.ch" target="_blank">edo.franzi@ukos.ch</a>> wrote:</div><br><div><div><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><br></span></font></div><div><font><span><br></span></font><div><br><blockquote type="cite"><div>On 28 Nov 2022, at 20:23, Roger Meier <<a href="mailto:roger.meier@pobox.com" target="_blank">roger.meier@pobox.com</a>> wrote:</div><br><div><div>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. <<a href="mailto:edo.franzi@ukos.ch" target="_blank">edo.franzi@ukos.ch</a>> wrote:</div><br><div><div><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><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><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>message xyz---0</span></font></span></font><span style="font-family:Monaco">+++1</span><span style="font-family:Monaco">lalala---</span><font><font face="Monaco"><span>1</span></font></font><span style="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>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><br></span></font></div><div><font face="Monaco"><span>Of course, the opposite (from the target to the CoolTerm uses the same mechanism).</span></font></div><div><font face="Monaco"><span>What do you think?</span></font></div><div><font face="Monaco"><span>BR</span></font></div><div><font face="Monaco"><span>Edo</span></font></div><div><font face="Monaco"><span><br></span></font></div><div><font face="Monaco"><span><br></span></font></div></div>_______________________________________________<br>CoolTerm-Betas mailing list<br><a href="mailto:CoolTerm-Betas@the-meiers.org" target="_blank">CoolTerm-Betas@the-meiers.org</a><br><a href="http://the-meiers.org/mailman/listinfo/coolterm-betas_the-meiers.org" target="_blank">http://the-meiers.org/mailman/listinfo/coolterm-betas_the-meiers.org</a><br></div></blockquote></div><br></div></div></div></blockquote></div><br></div></div></div></blockquote></div><br></div></div></div></blockquote></div><br></div></div></blockquote></div>