From owner-freebsd-hackers@freebsd.org Wed Oct 25 19:19:54 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 EC33DE52337 for ; Wed, 25 Oct 2017 19:19:54 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) (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 7F6487EF10 for ; Wed, 25 Oct 2017 19:19:54 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: by mail-wm0-x235.google.com with SMTP id z3so3932791wme.5 for ; Wed, 25 Oct 2017 12:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=La4StO1j3EyBC7upYPHpwbpaAM0xPcgFItzQvULmodk=; b=avvHN28syNVaPERjq0MYTrBWK2AH3cs9f7qIXe7yeaPrzHMbY5w8YYacE7WImgit6v kJVUoK8+uqrUMHoROkWJUwpcoAzVGXdpi/Za4BjZ1x7IxujZX7tPyNsoXcG8TO/kZzwI zeapCf+3DOSXYsfpfgvkN73HKWx9Ned57owCDA7TgZuVJBvZcru2rfgz0QZPgAD72ElY 2ryCD5utimn3j7q1durXEeUyGqWMK800gX4bIn+cd+zZahDLteCIFCSNiESDHR4Y9UEZ 2rHu+ug+uNk8guw9sssMeVcgwxp6zesHcv0KHgp+oe/q14uVMdqRXs6AZo0Iyr4XNeiA wXSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=La4StO1j3EyBC7upYPHpwbpaAM0xPcgFItzQvULmodk=; b=l2IdEbpWKSzeyVLyO+mriRLBrtOf3SWo69zy00D6bmm8drLxoxAmAF11VOKp/Cat4P 6EMZjGjUJXFrHtYbzpi33R3DSFRIOCYncm5pROs7wy5fMLL9x8PgrGyjE0i6oWMJZsZS pC9N8tdvX+arVIXCvGtuQmKrXmg/mRjX6XGKT11alfyhv4DVLvu5TshO8sfoCaSgjAj0 PlPLSJdGOZwXrmU/6l8bAdd+AYZKK5CZXDL55+pEdWDbzxC29UGEJqWXi3z4d7Qs9B23 AuDaTMkAmfH+ENAmlofSbftyRcM5MaXMC0qbs1yIetzR29AbruN//oHtmCBgJE7oWcLz Ir9w== X-Gm-Message-State: AMCzsaUSjZae/uq6n0gbplpNwS0fAUEAZIgQROcO0OxYtSbt7vDWZ5Gh 87XnrkPFY7c5XxaZqImZ4GGAWpbr6PIjbB1WtA== X-Google-Smtp-Source: ABhQp+SoFVj63RpqRfNlrpNgwTfTySopUIS9+9CzYyktfmMSgEgW83H0+3l8IXTSXwaj+jaaNAeGvVzGLSOXpkfry2E= X-Received: by 10.80.139.65 with SMTP id l59mr25302823edl.187.1508959193037; Wed, 25 Oct 2017 12:19:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.189.139 with HTTP; Wed, 25 Oct 2017 12:19:52 -0700 (PDT) In-Reply-To: References: From: Zaphod Beeblebrox Date: Wed, 25 Oct 2017 15:19:52 -0400 Message-ID: Subject: Re: We do serial differently. To: Kyle Evans Cc: FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Wed, 25 Oct 2017 19:19:55 -0000 I made the change below. The system still cycles sending M105. From the serial debug window, I don't think it receives anything. It may be that the reset has started with DTR and not finished? On Wed, Oct 25, 2017 at 1:11 PM, Kyle Evans wrote: > On Wed, Oct 25, 2017 at 11:43 AM, Kyle Evans wrote: > >> On Wed, Oct 25, 2017 at 11:34 AM, Zaphod Beeblebrox >> wrote: >> >>> On Mon, Oct 23, 2017 at 9:45 AM, Kyle Evans wrote: >>> >>>> Hi, >>>> >>>> Are you able to connect to it otherwise (w/ cu or friends) and issue, >>>> say, an M105 manually? >>>> >>> >>> yes. With CU I can connect, it resets, then I can issue an "M105" >>> and it parrots back some status. >>> >> >> Ok, cool, that's expected and sounds like Pronterface is doing something >> it shouldn't be. >> >> I'll poke at it a little bit more- last I checked, it didn't look like it >> was doing anything too crazy with pyserial and I've got a working OctoPrint >> (w/ pyserial) setup, so I know that works to some extent. >> >> > For the sake of argument, can you try applying the following patch [1] to > printrun? I don't see a need to be toggling DTR here, and that might narrow > things down a little bit. > > [1] > diff --git a/printrun/printcore.py b/printrun/printcore.py > index b54e750..fd531c3 100644 > --- a/printrun/printcore.py > +++ b/printrun/printcore.py > @@ -218,11 +218,6 @@ class printcore(): > parity = PARITY_ODD) > self.printer.close() > self.printer.parity = PARITY_NONE > - try: #this appears not to work on many platforms, so > we're going to call it but not care if it fails > - self.printer.setDTR(dtr); > - except: > - #self.logError(_("Could not set DTR on this > platform")) #not sure whether to output an error message > - pass > self.printer.open() > except SerialException as e: > self.logError(_("Could not connect to %s at baudrate > %s:") % (self.port, self.baud) + > > >