From owner-freebsd-hackers@freebsd.org Wed Oct 25 17:12:23 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 6699DE4FAB3 for ; Wed, 25 Oct 2017 17:12:23 +0000 (UTC) (envelope-from kevans91@ksu.edu) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0062.outbound.protection.outlook.com [104.47.32.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E0F7B76079 for ; Wed, 25 Oct 2017 17:12:22 +0000 (UTC) (envelope-from kevans91@ksu.edu) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ksu.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=w3KFZEvmQI2sEs2cQF9ARzB2ZnnEe3MQ+bgdOtfALhs=; b=UdjJvWzKfbQrjCemXHp7/iewdZRL4yMYY3FF18oqVwBNG3p428GXelX1qeED0ZF42j8dgZejssRASZzkg+99HoE1ZAiqbtsi/iPcovD69bV4MRgL4DddvNzRQY8yvoxcMYhK4hT5JVJPLmNAdYLoOwj1z/J9l84YuswVHaV0WJI= Received: from DM5PR05CA0020.namprd05.prod.outlook.com (10.173.226.30) by MWHPR05MB2991.namprd05.prod.outlook.com (10.168.246.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.3; Wed, 25 Oct 2017 17:12:20 +0000 Received: from BL2NAM02FT014.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::202) by DM5PR05CA0020.outlook.office365.com (2603:10b6:3:d4::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.156.4 via Frontend Transport; Wed, 25 Oct 2017 17:12:20 +0000 Received-SPF: Pass (protection.outlook.com: domain of ksu.edu designates 129.130.18.151 as permitted sender) receiver=protection.outlook.com; client-ip=129.130.18.151; helo=ome-vm-smtp2.campus.ksu.edu; Received: from ome-vm-smtp2.campus.ksu.edu (129.130.18.151) by BL2NAM02FT014.mail.protection.outlook.com (10.152.76.154) with Microsoft SMTP Server id 15.20.156.4 via Frontend Transport; Wed, 25 Oct 2017 17:12:19 +0000 Received: from calypso.engg.ksu.edu (calypso.engg.ksu.edu [129.130.43.181]) by ome-vm-smtp2.campus.ksu.edu (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id v9PHCJQ5030387 for ; Wed, 25 Oct 2017 12:12:19 -0500 Received: by calypso.engg.ksu.edu (Postfix, from userid 110) id 7999F248007; Wed, 25 Oct 2017 12:12:19 -0500 (CDT) Received: from mail-io0-f175.google.com (mail-io0-f175.google.com [209.85.223.175]) by calypso.engg.ksu.edu (Postfix) with ESMTPA id 513A0248348 for ; Wed, 25 Oct 2017 12:12:17 -0500 (CDT) Received: by mail-io0-f175.google.com with SMTP id m81so1746728ioi.13 for ; Wed, 25 Oct 2017 10:12:17 -0700 (PDT) X-Gm-Message-State: AMCzsaWBNycoQk7dIxQJTNRfxpR7K2i6grEqpd85HRY/iUodOj+de5Tz K7IrtkjREskw4iR9AtoAaHjOY0sgC6sLTObnphM= X-Google-Smtp-Source: ABhQp+RcocAN6fnUFAwNpuBdZcZRH7DKnnDx21FXYILXNbelrxX0+Rw4Zfk85A3xSPqptDBNDrFI+JFIKEgqTz53P2Q= X-Received: by 10.107.20.203 with SMTP id 194mr25205604iou.6.1508951537011; Wed, 25 Oct 2017 10:12:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.23.129 with HTTP; Wed, 25 Oct 2017 10:11:56 -0700 (PDT) In-Reply-To: References: From: Kyle Evans Date: Wed, 25 Oct 2017 12:11:56 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: We do serial differently. To: Zaphod Beeblebrox CC: FreeBSD Hackers X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:129.130.18.151; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(2980300002)(438002)(189002)(199003)(24454002)(88552002)(106002)(478600001)(106466001)(498394004)(93516999)(93886005)(5660300001)(55446002)(189998001)(4326008)(95326003)(6246003)(2906002)(84326002)(9686003)(236005)(6862004)(98316002)(512874002)(46386002)(16586007)(8936002)(61266001)(786003)(316002)(1411001)(59536001)(75432002)(86362001)(61726006)(42186006)(2950100002)(45336002)(229853002)(8576002)(50986999)(356003)(54356999)(90966002)(76176999)(246002)(8676002)(3480700004)(53546010)(305945005)(9896002)(55456009); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR05MB2991; H:ome-vm-smtp2.campus.ksu.edu; FPR:; SPF:Pass; PTR:ip-18-151.net.ksu.edu; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT014; 1:yJRqMawl/htfpsghsYZxw8NDshmbIe0Fuaqgp68gKcDfFRe5NYKEBw7OL2UyCj3GEyEAYDF0boWxQqJzH8FoDuTbNAJ/911eiZTJ4hiraMUpU4wnILza/HKEvx7ml9fl X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6d491daf-3d06-43ee-5e6f-08d51bcb8ccf X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603238); SRVR:MWHPR05MB2991; X-Microsoft-Exchange-Diagnostics: 1; MWHPR05MB2991; 3:DvFEXL8pimTdnGpLTqJA3UXsOGWltUY8xxpjxXuXJ2SEE0E72/yDEjnAehghln5yUjRRvARiTESRJpx+QR4xFHrLwWnIm322jFVAu+YU64hs3BjThfkTWLb0aC6Df5Zr6WBZ2NxTL0Z16Lqa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FaoiB1w5Zf34K/WoFRPBcz42UHnu6elorsGraNOVW3muc6iSfCUMO0gN5CWWwQs25ReIf813cuKnfno5NaynJN9+cqMLUrldDEeLTmLLZh4w0CKJOCWQqN33LApzxz0shLiLY7EuljjWiYBYkf+m7GMKEZ7xkdsH4l2KuGPxYqr6WEOM9OjP7wTK4hwTqDNxwfHWORXUgJhCo0hLGED4jhJCT2aenMM35GrEJt0pzz2a8CdzjyrPqzx12FVoC/Z915TmiddK3EYq2fwc78wTXlyn4wf90Q2SiOZVhWUPy6uC X-Exchange-Antispam-Report-Test: UriScan:(112903893386949)(21532816269658); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3231020)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93004095)(6041248)(20161123560025)(20161123558100)(20161123555025)(20161123562025)(201703131423075)(201702281529075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR05MB2991; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR05MB2991; X-Microsoft-Exchange-Diagnostics: 1; MWHPR05MB2991; 4:cl/BKKY8iD5AoLtadiIKd1RN3XmAQFE1TOHSI+NPm5V9D/jbMOrpPye8VJYiFswWEwvKn3NdUJzBRnC2LBNJ+ndfKWeCW/09jI1IfhwFnt00vyHwS2sN8IwmdSXddJHRMRYVg0DLOPyAf2sirlF3D5dkYQWIq34h1R9jBpfdm4bR0+NhbTFC11ptSyiGR7rB45RqKvQvcr6Fhc1aEJOrRQseNIjb9swWC+g97NLcRg8EWSnIUoqLRHRDL9cX31e0U9LfLuMfKTS8RY4ljXPC5xJmmdVwZflNg7MMiNtIBjniyUf8I+0aas9NwUH/bkARNywt+pFJwyG0k4S6kKhvTkPmtm5DI1jXCWUbsmCuR0Y= X-Forefront-PRVS: 0471B73328 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR05MB2991; 23:zdwjHV99e/Womy9Cwbz9/N6D9DMb6Z/RZNsfrU/KH?= =?us-ascii?Q?8E26wzvRVDeJ0zE7Ope5THtJOfQJ2TdDYc3FhlO/Yv/xrUwZGHvGD942LERv?= =?us-ascii?Q?DgbmZAUxP8Psu/qXKk9z/Y4491iioTqVAOaQLyeq8Tg9U0IbwxeeizuVOgEv?= =?us-ascii?Q?pe1tqRTi8tiXqxofhHVSPUfh5p7VmXy7DSBpBqfZXx7hjfJBKTq/ZYPeSthi?= =?us-ascii?Q?op2JPGS/5GpbWcGYBBwAzOR8ysfMH7v6K2znz+5S2MGZy5aRp3TDPWdbptfV?= =?us-ascii?Q?f1LgMQhpBG6Hocd4K+aHUADwKrV9wx8SmSNGn9oTxLWipdQuCrA8MgGZ+hJU?= =?us-ascii?Q?IsrGWqpaW+NgXCJRG/9uXQUCHGuyiZRYJrDzRvqvBfCkwLHohUMIVXXfGFyN?= =?us-ascii?Q?nEGtPkKttpxAQ+IsaEdKchMIQGsJ+xu3Bci6i9klisI/GMhO28COBP08dw0b?= =?us-ascii?Q?sgmbrEpnxx4SrpckUPzRr35vwEEHA2yRNH6yiG5aYG8OAzuDE4p/4if/mHYH?= =?us-ascii?Q?Jr7MKaWYARNo4ey8sIByIBldTwMMC2njCsllkDfI7nSIGFHtO9baLrityhLC?= =?us-ascii?Q?orqDhsGbnxlzbVaiPc6xiPA6o9vw8oZW1xUy5t/XU5Dx67/71388KeqR/9a8?= =?us-ascii?Q?c3Lulu17aW864u22pAISDb/nlTgjM7VLmpQtevnbpQgu2Refg0pJOFrapJA1?= =?us-ascii?Q?Zl7j4zt3rgDlHhF1ltkGNE7frRDHD9nF31JhR1PbFvE69H8YnYuKp4IDqkJb?= =?us-ascii?Q?M39SMsgW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=; 5:vCoVTaPSJSYhe5BCTTwW6d8gqJox+3VUAQgkYIQixAFgma5UWofQW3zaXczYbDq7F8IFEXgTGP85hW3nEiraEkO01Rw+T5t7kkSSOUM2Og9nR0g6oIKTZwdsZhCKO+2sDA01GxG3vdl/ctGzcVn1iAtYOSjmxViklxzJpIYgl9g=; 24:SacVZTIFShASsHxl5ZD03zjbgKFZuKEeXGt4MVgUIMspPn0/66zmAWkJ9QqCExaVjFKlIkIYmNGstGe3qFvCQ9uFfJFD7o5a8QzM2igZzP4=; 7:jAQpnKi7CZdHV+Nxw8uny+UTBJd4+/Nl/wnP2ZYBJEKqECubQAR/O/0jhAiGa4E8rwHaVAa4FptMbLGnLrpRtL/YfnfKWtJu+e9EfHaU/c+iRyXGMIfb1tDa/q2Iu4E4Ad6wtp+h/2QzQAraItwRo1lDbjDt4mREXEVPkzqjOBf/NLITvS4qOywvJ5bqAg/2gJf0XoSmvkaEnrMMc6oaML5ruHae9RlHlFThGxoVpCNTi0yj8V2iF/dc4wG3LQTI SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR05MB2991; 20:rOb7sJTL1E0uilEKYrEHGmzjLMGaCIsEJheAlQTa01XCXDCLuKic2GnAcJVEvAI7lYdXhbXA2m/2exzRJ3+oq/Ccxgvpmf6aTpeNuIgxQqxNRFdin0V9Mwlle9kbUGMKZbgawNkZx0MGSj//i2sA4rXJHYXR/RKmqQdCQ/NgOpI= X-OriginatorOrg: ksu.edu X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2017 17:12:19.5629 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6d491daf-3d06-43ee-5e6f-08d51bcb8ccf X-MS-Exchange-CrossTenant-Id: d9a2fa71-d67d-4cb6-b541-06ccaa8013fb X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=d9a2fa71-d67d-4cb6-b541-06ccaa8013fb; Ip=[129.130.18.151]; Helo=[ome-vm-smtp2.campus.ksu.edu] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR05MB2991 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 17:12:23 -0000 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) +