From owner-freebsd-hackers@freebsd.org Thu Oct 19 11:47:10 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 31B77E3885B for ; Thu, 19 Oct 2017 11:47:10 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B690B660DE for ; Thu, 19 Oct 2017 11:47:09 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr0-x241.google.com with SMTP id z99so5552823wrc.12 for ; Thu, 19 Oct 2017 04:47:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=wASG8JmAPjaW7WH87hW+M9z6PRJBN2nckHFS9gLUweE=; b=p4O6Z+s+jrC6zIBdjCcMv8a7adGP9mxhrgQhgcGU6Vo5Ju1TDM/K+1+Oeg0IbgP+pT QA+l3VCJQAOyg0gBd4KLDQ6h7aJ8VFXHL5EWY5ESz8TWmzIaBV0R8Z9hyPvF7qvJz4bZ SVvGJbztxTDtLwMlwlFtPyJPqNIotkNGcFXskjl9yrths6nbeJmesX7kBdu8i+uAoHQB TRcHSE6OrsmKdaj5C3C2LzV5VbgTqNBQ+/7CqlIRiZbQNH5hlhy0opdr6LBTm+4ByODx 6sMMGu/rBXB7BpqeRAo3X/zbCiDi31t0RITYxb2dHJuiRogHBoFLWCWlHREaZloLLciy ySBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=wASG8JmAPjaW7WH87hW+M9z6PRJBN2nckHFS9gLUweE=; b=nTiQccJoyEDCaB8l5+j/zt9k+HeDRM0ue/oG7edaqQuIZTjw8tdyWgX3x0ts/Ts93z hXGgZMAZ9K8Bv+VDfCB4Tyn10f9IvU3ZFrdmjbkFREDTEC0SNWQyLNdwOwyNbJKS/5OA B+CPODpoEuAAfDhuXqA6LHo6cYdKnRfmic+IpkdJmWO1vsNFvv89icNCw6H61jBgSHyT xrx2cFP36bvgZYnKxfk4c1Ay/QwDQqPD+MiZwguKOsyAeNvlpdlBzKJZmQRFXVYp2fDe pPnPusUSZoQvRn2SEbl4b+cP/DsUf/gOdWXFzkvSoHVqEAYDVKg2Qy+ix91wvtVh0+R9 LRnA== X-Gm-Message-State: AMCzsaUoxn4dTus4Wtxr9zFdVtG0SrNTyHufcOt84wxxhDlvvSt9LcS4 lnwa0bRNTIg7Tft7EGrdlmQ= X-Google-Smtp-Source: ABhQp+REooxo2EEllun3yqIcmzvhbSPImY2zxPfSNIWpWIcJFrRT1pGDMw6BaOScuoO9D7v33w3iJw== X-Received: by 10.223.145.41 with SMTP id j38mr1254327wrj.133.1508413628181; Thu, 19 Oct 2017 04:47:08 -0700 (PDT) Received: from ernst.home (p578E321D.dip0.t-ipconnect.de. [87.142.50.29]) by smtp.gmail.com with ESMTPSA id x13sm12246851wrg.7.2017.10.19.04.47.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Oct 2017 04:47:07 -0700 (PDT) Date: Thu, 19 Oct 2017 13:47:06 +0200 From: Gary Jennejohn To: Bob Bishop Cc: gljennjohn@gmail.com, Zaphod Beeblebrox , FreeBSD Hackers Subject: Re: We do serial differently. Message-ID: <20171019134706.659e8ae2@ernst.home> In-Reply-To: <20171019133247.69361225@ernst.home> References: <20171019133247.69361225@ernst.home> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Oct 2017 11:47:10 -0000 On Thu, 19 Oct 2017 13:32:47 +0200 Gary Jennejohn wrote: > On Thu, 19 Oct 2017 11:03:46 +0100 > Bob Bishop wrote: > > > Hi, > > > > > On 19 Oct 2017, at 05:25, Zaphod Beeblebrox wrote: > > > > > > How does FreeBSD do serial differently than Linux or MacOS or Windows? > > > > Quite likely only in the defaults when a port is opened. > > > > > Now... this isn't _exactly_ serial, but the serial that is emulated by the > > > arduino driver in ports. > > > > > > The issue is that running the arduino IDE works (and it boots with the > > > loaded code), but then running 'pronterface' fails to connect --- looking > > > all-the-while like one-way communication. > > > > > > I see someone else basically having the same problem and claiming that > > > hacking a trace (that affects the DTR response) on the arduino fixes it for > > > FreeBSD (see https://plus.google.com/+MiroslavPrymek/posts/6TDdbuoNhzH )... > > > > > > Given this information, can I stty my way out of this problem? Can I make > > > a small modification to pronterface? > > > > stty -clocal ... > > > > Hmm. The description of clocal in stty(1) is incorrect. It states > that clocal is without and -clocal with modem control. It's reversed. > My error. After looking at the stty source I realized that the man page is correct. To turn off modem control use stty clocal. That results in tcsetattr(3) setting the CLOCAL flag = ignore modem status lines. > > might help. > > > > All implementations of virtualised serial ports should (IMHO) provide a software ___breakout box___ which is the only sure way of diagnosing this sort of problem. > > > > -- > Gary Jennejohn -- Gary Jennejohn