<div dir="ltr">Great research Gernot, thanks & congrats.<div><br></div><div>Updated test script attached.<br><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">73,<div>Bob, N6TV</div></div></div>
<br><div class="gmail_quote">On Sat, Dec 17, 2016 at 4:24 PM, <span dir="ltr"><<a href="mailto:gt-i@gmx.net" target="_blank">gt-i@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">See <a href="https://support.microsoft.com/en-us/kb/115831" rel="noreferrer" target="_blank">https://support.microsoft.com/<wbr>en-us/kb/115831</a><div class="HOEnZb"><div class="h5"><br>
<br>
Am 18.12.2016 um 01:02 schrieb <a href="mailto:gt-i@gmx.net" target="_blank">gt-i@gmx.net</a>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Bob,<br>
I just figured out the nasty trick: the antenna switch installs a virtual com port named "COM14". Using this in a call to io.open will create a text file under windows. One has to name all com-ports > COM9 in UNC notation. Here is the adapted code line:<br>
local rsw62 = io.open("\\\\.\\"..RSW_COMPORT<wbr>, "w")<br>
Thanks for your support.<br>
73 Gernot, DF5RF<br>
<br>
<br>
Am 16.12.2016 um 01:25 schrieb Bob Wilson, N6TV:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If you install Portmon <<a href="https://technet.microsoft.com/en-us/sysinternals/portmon.aspx" rel="noreferrer" target="_blank">https://technet.microsoft.com<wbr>/en-us/sysinternals/portmon.<wbr>aspx</a>> you can trace all bytes being written to the serial port. Perhaps it requires DTR=ON RTS=ON instead of OFF or a different baud rate that what I've hard coded in the MODE command. Send me your script as an attachment and a PDF file documenting the required command stream for your antenna switch device, and I'll take a look.<br>
<br>
I wrote bytes to an FTDI serial port using my script, and it seemed to work fine, the trace showed the bytes being written OK, encluding SOH and ETX.<br>
<br>
73,<br>
Bob, N6TV<br>
<br>
On Thu, Dec 15, 2016 at 4:15 PM, <<a href="mailto:gt-i@gmx.net" target="_blank">gt-i@gmx.net</a> <mailto:<a href="mailto:gt-i@gmx.net" target="_blank">gt-i@gmx.net</a>>> wrote:<br>
<br>
Bob,<br>
good hint. However, after playing quite a while, I'm pretty sure<br>
that io.write does not send anything out, instead it seems to<br>
write it to an internal buffer which I can check using :read(1). I<br>
tried :flush() and :setvbf("no") which did not cure this. I also<br>
played with variations of io.open(.."w", "r+") etc. I tested on a<br>
phyiscal COM-port with an Echo-plug (RX/TX, all Modemlines<br>
connected to each other), to a virtual one using com0com etc - no<br>
change.<br>
Any other idea?<br>
Tnx,<br>
<br>
Gernot DF5RF<br>
<br></blockquote></blockquote></div></div></blockquote></div></div></div></div>