public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Virtual device in Windows 10
@ 2019-01-01  6:38 Gary Graham
  2019-01-01  7:18 ` Gary Graham
  0 siblings, 1 reply; 4+ messages in thread
From: Gary Graham @ 2019-01-01  6:38 UTC (permalink / raw)
  To: cygwin

Greetings,

Trying to use socat to bridge from the network to a virtual serial port on
Windows.
The detailed output shows a connection is opening, but it does not stay
open.



socat -d -d pty,link=virtualcom0,waitslave tcp:192.168.0.11:8023
      2 [main] socat 15388 find_fast_cwd: WARNING: Couldn't compute
FAST_CWD pointer.  Please report this problem to
the public mailing list cygwin@cygwin.com
2019/01/01 00:29:15 socat[15388] N PTY is /dev/pty0
2019/01/01 00:29:15 socat[15388] N opening connection to AF=2
192.168.0.11:8023
2019/01/01 00:29:15 socat[15388] N successfully connected from local
address AF=2 192.168.0.18:51704
2019/01/01 00:29:15 socat[15388] N starting data transfer loop with FDs
[3,3] and [4,4]
2019/01/01 00:29:15 socat[15388] N socket 1 (fd 3) is at EOF
2019/01/01 00:29:15 socat[15388] N exiting with status 0

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Virtual device in Windows 10
  2019-01-01  6:38 Virtual device in Windows 10 Gary Graham
@ 2019-01-01  7:18 ` Gary Graham
  2019-01-01 16:02   ` cyg Simple
  0 siblings, 1 reply; 4+ messages in thread
From: Gary Graham @ 2019-01-01  7:18 UTC (permalink / raw)
  To: cygwin

I downloaded an updated version of the Cygwin tools and tried again....

C:\cygwin64\bin>socat -d -d pty,link=/dev/ttyV0,waitslave tcp:
192.168.0.11:8023
2019/01/01 01:14:27 socat[10780] N PTY is /dev/pty0
2019/01/01 01:14:27 socat[10780] N opening connection to AF=2
192.168.0.11:8023
2019/01/01 01:14:28 socat[10780] N successfully connected from local
address AF=2 192.168.0.18:55426
2019/01/01 01:14:28 socat[10780] N starting data transfer loop with FDs
[5,5] and [6,6]
2019/01/01 01:14:28 socat[10780] N read(5, 0x600056500, 8192): Input/output
error (probably PTY closed)
2019/01/01 01:14:28 socat[10780] N socket 1 (fd 5) is at EOF
2019/01/01 01:14:28 socat[10780] N socket 1 (fd 5) is at EOF
2019/01/01 01:14:28 socat[10780] N socket 2 (fd 6) is at EOF
2019/01/01 01:14:28 socat[10780] N exiting with status 0

Can you tell why the PTY is closing ?

Regards,
Gary G.

On Tue, Jan 1, 2019 at 12:37 AM Gary Graham <gegcorp2012@gmail.com> wrote:

> Greetings,
>
> Trying to use socat to bridge from the network to a virtual serial port on
> Windows.
> The detailed output shows a connection is opening, but it does not stay
> open.
>
>
>
> socat -d -d pty,link=virtualcom0,waitslave tcp:192.168.0.11:8023
>       2 [main] socat 15388 find_fast_cwd: WARNING: Couldn't compute
> FAST_CWD pointer.  Please report this problem to
> the public mailing list cygwin@cygwin.com
> 2019/01/01 00:29:15 socat[15388] N PTY is /dev/pty0
> 2019/01/01 00:29:15 socat[15388] N opening connection to AF=2
> 192.168.0.11:8023
> 2019/01/01 00:29:15 socat[15388] N successfully connected from local
> address AF=2 192.168.0.18:51704
> 2019/01/01 00:29:15 socat[15388] N starting data transfer loop with FDs
> [3,3] and [4,4]
> 2019/01/01 00:29:15 socat[15388] N socket 1 (fd 3) is at EOF
> 2019/01/01 00:29:15 socat[15388] N exiting with status 0
>
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Virtual device in Windows 10
  2019-01-01  7:18 ` Gary Graham
@ 2019-01-01 16:02   ` cyg Simple
  2019-01-01 21:11     ` Brian Inglis
  0 siblings, 1 reply; 4+ messages in thread
From: cyg Simple @ 2019-01-01 16:02 UTC (permalink / raw)
  To: cygwin

On 1/1/2019 2:18 AM, Gary Graham wrote:
> I downloaded an updated version of the Cygwin tools and tried again....
> 
> C:\cygwin64\bin>socat -d -d pty,link=/dev/ttyV0,waitslave tcp:
> 192.168.0.11:8023
> 2019/01/01 01:14:27 socat[10780] N PTY is /dev/pty0
> 2019/01/01 01:14:27 socat[10780] N opening connection to AF=2
> 192.168.0.11:8023
> 2019/01/01 01:14:28 socat[10780] N successfully connected from local
> address AF=2 192.168.0.18:55426
> 2019/01/01 01:14:28 socat[10780] N starting data transfer loop with FDs
> [5,5] and [6,6]
> 2019/01/01 01:14:28 socat[10780] N read(5, 0x600056500, 8192): Input/output
> error (probably PTY closed)
> 2019/01/01 01:14:28 socat[10780] N socket 1 (fd 5) is at EOF
> 2019/01/01 01:14:28 socat[10780] N socket 1 (fd 5) is at EOF
> 2019/01/01 01:14:28 socat[10780] N socket 2 (fd 6) is at EOF
> 2019/01/01 01:14:28 socat[10780] N exiting with status 0
> 
> Can you tell why the PTY is closing ?

Both ends of the processes a Cygwin process?  PTY is only available to 
Cygwin.

-- 
cyg Simple

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Virtual device in Windows 10
  2019-01-01 16:02   ` cyg Simple
@ 2019-01-01 21:11     ` Brian Inglis
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Inglis @ 2019-01-01 21:11 UTC (permalink / raw)
  To: cygwin

On 2019-01-01 09:01, cyg Simple wrote:
> On 1/1/2019 2:18 AM, Gary Graham wrote:
>> I downloaded an updated version of the Cygwin tools and tried again....
>> C:\cygwin64\bin>socat -d -d pty,link=/dev/ttyV0,waitslave tcp:
>> 192.168.0.11:8023
>> 2019/01/01 01:14:27 socat[10780] N PTY is /dev/pty0
>> 2019/01/01 01:14:27 socat[10780] N opening connection to AF=2
>> 192.168.0.11:8023
>> 2019/01/01 01:14:28 socat[10780] N successfully connected from local
>> address AF=2 192.168.0.18:55426
>> 2019/01/01 01:14:28 socat[10780] N starting data transfer loop with FDs
>> [5,5] and [6,6]
>> 2019/01/01 01:14:28 socat[10780] N read(5, 0x600056500, 8192): Input/output
>> error (probably PTY closed)
>> 2019/01/01 01:14:28 socat[10780] N socket 1 (fd 5) is at EOF
>> 2019/01/01 01:14:28 socat[10780] N socket 1 (fd 5) is at EOF
>> 2019/01/01 01:14:28 socat[10780] N socket 2 (fd 6) is at EOF
>> 2019/01/01 01:14:28 socat[10780] N exiting with status 0
>> Can you tell why the PTY is closing ?
> Both ends of the processes a Cygwin process?  PTY is only available to Cygwin.

What is on the other side of the virtual port?
You need either a data source/sink or an app.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-01-01 21:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-01  6:38 Virtual device in Windows 10 Gary Graham
2019-01-01  7:18 ` Gary Graham
2019-01-01 16:02   ` cyg Simple
2019-01-01 21:11     ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).