From owner-freebsd-hackers@freebsd.org Thu Oct 19 11:32:52 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 2C8C5E3843C for ; Thu, 19 Oct 2017 11:32:52 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (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 B15D165B15 for ; Thu, 19 Oct 2017 11:32:51 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm0-x243.google.com with SMTP id u138so15371989wmu.5 for ; Thu, 19 Oct 2017 04:32:51 -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=BiHtjcIMiwHa4nHh6o1oXxF6mS6DTmvKoVOuqm/AsA8=; b=H+EuxUOqtRnhf+roaab4/mW6NLKLjC9UbWg8Z/WN+gvx/5oEE0d1bTwuXOi4mI5KcO HW4RyaZEYhbRqSzQC5brzd5vZwsKSSgO1pdnpV3g6UAnczNHoZ1u9qP9wDa5DapkFRZ6 JU3O8l+YqAVkw2Pv4JqUsOuMPggKc9Bcx0g8zqrtkca7kXL9h65Bgxqw+w3b/VBHt1AT wnYF5FGNoVjf68TU8LoXR12DesYoARwAhpFckt/XC0KUEc5FShWF736wEUaQW90/BHH8 9QRkWu+hBLhGaFsYL/3K4VSAKnXg22D5FFyjvAp7zZJUH9m+XGcWhTZoY5OKvFskK/yV vVMA== 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=BiHtjcIMiwHa4nHh6o1oXxF6mS6DTmvKoVOuqm/AsA8=; b=WOXFraD2S12raDJM/PEWh88BAC8PFtgWm42nCRuletcRxxH0lHN1SrZKcjt5AcDmMW +iZoX8EidBnUdEFQI5iT8/PcyJujTYkAe6WLN0DdmIqmRzTaGyrp8+9fanwvWCBgcSWv LS2TC4ldLb9EWrn8e4uBUDTgC7YLggC8Odld/5lNfZI4lxg5RheksqGksh6ALzl39qI+ 0gK8K4gag1Gw4SHZezOisi4H+EB4jUPJgnXjNxWEIG6u7cKoDHQP4uVQEo4i+S2vFHpB Iv9BNolWo+CY4Fq67ho4WjkL2JIz3v0241ZnrRt5oH9a7elEFFgJVncSkHcuSJ9lHY+P mrmA== X-Gm-Message-State: AMCzsaW29klw1yV1ZMrrQsWf5UrP6fRWkJ1iIAjL58hG+3hHvrsPhCRY QIYjLCWlxUYQCjiq0IjfOlo= X-Google-Smtp-Source: ABhQp+R4aSenwJ5bveradc6UpbqF5/WFKZOFOcr15dofVdyPAe7R/xqNtA5a6ZkfJd9WE4UIgz5bxA== X-Received: by 10.28.168.83 with SMTP id r80mr1338557wme.59.1508412769872; Thu, 19 Oct 2017 04:32:49 -0700 (PDT) Received: from ernst.home (p578E321D.dip0.t-ipconnect.de. [87.142.50.29]) by smtp.gmail.com with ESMTPSA id 69sm857458wmp.11.2017.10.19.04.32.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Oct 2017 04:32:48 -0700 (PDT) Date: Thu, 19 Oct 2017 13:32:47 +0200 From: Gary Jennejohn To: Bob Bishop Cc: Zaphod Beeblebrox , FreeBSD Hackers Subject: Re: We do serial differently. Message-ID: <20171019133247.69361225@ernst.home> In-Reply-To: References: 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:32:52 -0000 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. > 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