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 w3BH96WT031659 for ; Wed, 11 Apr 2018 19:09:09 +0200 Received: from majordom by post.thorcom.com with local (Exim 4.14) id 1f6J9N-0005BD-Pg for rs_out_1@blacksheep.org; Wed, 11 Apr 2018 18:03:13 +0100 Received: from [195.171.43.32] (helo=relay1.thorcom.net) by post.thorcom.com with esmtp (Exim 4.14) id 1f6J9N-0005B4-0T for rsgb_lf_group@blacksheep.org; Wed, 11 Apr 2018 18:03:13 +0100 Received: from mout.kundenserver.de ([212.227.126.133]) by relay1.thorcom.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1f6J9K-0000QG-0y for rsgb_lf_group@blacksheep.org; Wed, 11 Apr 2018 18:03:11 +0100 Received: from [192.168.2.100] ([217.82.12.118]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MTbSJ-1ew9zo31xn-00SQaU for ; Wed, 11 Apr 2018 19:03:07 +0200 From: "P. W. Schnoor" To: rsgb_lf_group@blacksheep.org References: <1215299641.20180411111636@gmail.com> Message-ID: Date: Wed, 11 Apr 2018 19:03:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1215299641.20180411111636@gmail.com> Content-Language: en-GB X-Provags-ID: V03:K1:r0gnx48pt4+1KJNyIBtwJQDrxM2oQ7CkMzxcNguIy4JmKBDZBI6 VDrt7dyjg4BfsdiAQvZexJm7B8ePoFdMYmpnctZU4XdG/ogg1iE/KG64JQokB7x5ge47Xv/ Sk8YlRyQ0E2ZM1kIx+ZjU5fFL3JNuxS/EMinC2+9iDMShLcRC/rjD6k40z6PLNsxd6IrIOF m2VT73t7ixqI36ts4UMig== X-UI-Out-Filterresults: notjunk:1;V01:K0:TkGmhUTkjVM=:XQW6THifef7ikZo37RZWHN Q7gZ2loWSLBtkRChKk4n03xNW14xC67jDN1vLOHewADLmThNslbgaKvKRshhqJ/svUXaexFy6 0cMaNTvQPys77WFzhFZOIAL6EkKTzmNjxUvarVsKEIlh5fkU686oY0RFf+lDvoSGjfJ5gFSpz 8XXwtY/BSOOePd/rK6j+yXcm3SKjvYhjuPsfqhfftOGMfccAkFvS+9FDpKwGN1P+IYWaIBay4 TmpOfQWHtot9EJNI7tW5v2PvxHIQbI4GaB9YWBzjgvgjy7NtxSKzM6eX1qJaFiq2lWkwTlQ0C ixR+stRcgPD6vDXzG5js7GZ1Kfvq5H7tXMgepP7rLFtn6xLn0i1zO7PxNtOOBo1GC7xyUsKUj FDcVa1wDg3uVh/XA+YtyJq/Xso+/ERZkGIKTtAE2AaIQGjOVLjYp5d9OA2xggp+jyHIEPfyfi OGiACj3tiEhK/vkhq/50mFzjf6Xmy0pGuBnmAQGsUWBrrxOtXkyY7dludPO6XvD2P2LAaU4Oq MRXjGMljHwxBa4M8xdzrm+0S2O+jCN4GCeLk3atnwQA3j04JEDzHgW796BgvE2cigyvS3FSzK yyOdHijjPfP2a1liepjF/2bq6j+pZksutWhMbqmsO2FZ3VKMP6PB47b56asAxCzax6wHSIgZx f3e2IlW87OMYo3AqE2hfpNUg5ODb/OdZ6BlyJ8KWYAahLxYUWpm9jTJFe8q78AgUyT53R+7x7 UCeGyWs4lPhWHyVrYNTe/CXVXmnbki7NhQxLO/SIjn3tYwgZPlpeIhPwRLs= 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: 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: [...] Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- X-Scan-Signature: 4e3b1488273adbbe9757d6bdd5adf219 Subject: Re: LF: Windows software to drive a relay at a given time? Content-Type: text/plain; charset=utf-8; format=flowed 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.0 required=5.0 tests=none 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 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