From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72078 invoked by alias); 1 Jan 2019 07:18:58 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 72063 invoked by uid 89); 1 Jan 2019 07:18:58 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=BAYES_50,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_PASS,WEIRD_PORT autolearn=no version=3.3.2 spammy=Greetings, connected, connection, Gary X-HELO: mail-wr1-f49.google.com Received: from mail-wr1-f49.google.com (HELO mail-wr1-f49.google.com) (209.85.221.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 01 Jan 2019 07:18:55 +0000 Received: by mail-wr1-f49.google.com with SMTP id 96so27824048wrb.2 for ; Mon, 31 Dec 2018 23:18:55 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Gary Graham Date: Tue, 01 Jan 2019 07:18:00 -0000 Message-ID: Subject: Re: Virtual device in Windows 10 To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2019-01/txt/msg00001.txt.bz2 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 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