Return-Path: Received: from post.thorcom.com (post.thorcom.com [195.171.43.25]) by klubnl.pl (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id w3C8Z9al001964 for ; Thu, 12 Apr 2018 10:35:10 +0200 Received: from majordom by post.thorcom.com with local (Exim 4.14) id 1f6XUL-000268-HT for rs_out_1@blacksheep.org; Thu, 12 Apr 2018 09:21:49 +0100 Received: from [195.171.43.32] (helo=relay1.thorcom.net) by post.thorcom.com with esmtp (Exim 4.14) id 1f6XTx-00025z-LV for rsgb_lf_group@blacksheep.org; Thu, 12 Apr 2018 09:21:25 +0100 Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]) by relay1.thorcom.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1f6XTs-0002ZC-BM for rsgb_lf_group@blacksheep.org; Thu, 12 Apr 2018 09:21:23 +0100 Received: by mail-wr0-x229.google.com with SMTP id u46so4187944wrc.11 for ; Thu, 12 Apr 2018 01:21:19 -0700 (PDT) X-DKIM-Result: Domain=gmail.com Result=Good and Known Domain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:message-id:to:subject:in-reply-to:references:mime-version :content-transfer-encoding; bh=isMlaAJCPMphc3LYbRDZmz52kdTAl8fNfjAR2sRGLWM=; b=Oh+sWsGS8bkFlb+gu3G7Rt0bt7IcVECUScmQEKecoQTDXH5t32Z/iXfmT33P9uop9T JGZxtE9tl29in0q78/B71bIyCzwVQ2nhbBlZgY8Un1i4wOtusQR+GV0754J1hcMYD5ue xC8lfG1rdmdGZ4XUXEB1g8s8jQhsFuGd22XcdImQzUZcvPPNSH2ZaJnCwkLqhfCED1nJ KMIqj19Erw/LVYLTTf1TXnpfEyuf8efn8Y2pvA8d9/IuQ10w3q0Dk6gw8SI9eppunNWR yFdfWKCdnZ59dUPt1HK7fpwT10zNb12lub28c2opKzbPOtAhD471UDV+adfovzYHYBrW DWNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:message-id:to:subject:in-reply-to :references:mime-version:content-transfer-encoding; bh=isMlaAJCPMphc3LYbRDZmz52kdTAl8fNfjAR2sRGLWM=; b=hC5FqpbrxlwYDYp/ip7ofZkTQ4rwgH9kLwxq0dtTFeOcU0v7Z1zzighe/kHB1/DMhH lEMB5D1LOKiO+xH2gj02Zwy2qmm6x+eEFcc02fYnRdqzOCLQY72yQwstCfuhnuKRP1P2 9fV7u13E2Fl0BjcDnp0HQOda+xf9EONDEwOqEchVkqjvkTf2TQgnFj7BWZ/Q2TzLSu+F fIP1W33r9L4/SImvGOuZLXs4PxfZJ0hdS1Hy15gN1LPMYysVrzICQMknhIlldx1WB6Sv G4cpFdhKYik6NoBd3L6vZ1Uyr9QWyJwi72ySvU2B9PSuvRP1uQXrWCeb1K4Kf84IOY8L yfFA== X-Gm-Message-State: ALQs6tCgysNwnCUjuX4qTSduH4erO3rDL2Fp77WMEimTqHPQ5jP4m/xN iwYQh1ekWcWAxByshMtnf5qtjQ== X-Google-Smtp-Source: AIpwx4+J9eqndKx6SqnE9PdSmmIr+6AutFc1u01H33coCaZWV1D7b2ONYXvqbVmmr36G+GWiKKA+Iw== X-Received: by 10.223.192.3 with SMTP id z3mr5311775wre.177.1523521277774; Thu, 12 Apr 2018 01:21:17 -0700 (PDT) Received: from OfficeWin7.lan (82-70-254-222.dsl.in-addr.zen.co.uk. [82.70.254.222]) by smtp.gmail.com with ESMTPSA id q7sm2781010wrf.92.2018.04.12.01.21.16 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 12 Apr 2018 01:21:17 -0700 (PDT) Date: Thu, 12 Apr 2018 09:21:15 +0100 From: Chris Wilson X-Priority: 3 (Normal) Message-ID: <799252009.20180412092115@gmail.com> To: "P. W. Schnoor" In-Reply-To: References: <1215299641.20180411111636@gmail.com> MIME-Version: 1.0 X-Spam-Score: 0.0 (/) X-Spam-Report: Spam detection software, running on the system "relay1.thorcom.net", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello Peter, Neat, and thank you, but clicking on Andy's exe file is temptingly simple to a PC ignoramous like myself ;) I wonder if a serial port would drive something like this directly, or would a big input surge be likely to kill it? [...] Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (dead.fets[at]gmail.com) 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Scan-Signature: ce0e5a4ae990e5a63db3ab7aea21191b Subject: Re: LF: Windows software to drive a relay at a given time? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on post.thorcom.com X-Spam-Level: X-Spam-Status: No, hits=0.8 required=5.0 tests=PRIORITY_NO_NAME autolearn=no version=2.63 X-SA-Exim-Scanned: Yes Sender: owner-rsgb_lf_group@blacksheep.org Precedence: bulk Reply-To: rsgb_lf_group@blacksheep.org X-Listname: rsgb_lf_group X-SA-Exim-Rcpt-To: rs_out_1@blacksheep.org X-SA-Exim-Scanned: No; SAEximRunCond expanded to false Hello Peter, Neat, and thank you, but clicking on Andy's exe file is temptingly simple to a PC ignoramous like myself ;) I wonder if a serial port would drive something like this directly, or would a big input surge be likely to kill it? http://uk.farnell.com/opto-22/240d25/relay-solid-state-dc-25a-280vac/dp/1839015 Wednesday, April 11, 2018, 6:03:07 PM, you wrote: > Hi Chris, > On 11.04.2018 12:16, you wrote: >> ... >> Software to close a relay at a given time, perhaps via the serial port? >> ... > Seven lines of "Python" and a relay circuit connected to com1, RTS-pin: > # import libraries: > import serial # see https://pythonhosted.org/pyserial/ > import time # needed for time delay ("sleep()") > # Create a connection object to com1: > com = serial.Serial('com1', baudrate=9600, bytesize=serial.EIGHTBITS, > parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, timeout=1, > xonxoff=0, rtscts=0 ) > com.setRTS(True) # CLICK! > time.sleep(60) # Wait 60 sec. or whatever > com.setRTS(False) # CLACK! > com.close() > # END > Use the standard system tool "Windows Task Scheduler" to run it at a given > time. I did not check it on Windows, but on Linux (device name changed and > using cron) it works driving an old rtty-relay ("Kleinpolrelais") from > Siemens directly. > Peter, df3lp -- Best regards, Chris mailto:dead.fets@gmail.com