Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <428E2B87.9040008@ieee.org> Date: Fri, 20 May 2005 19:25:11 +0100 From: Jason Pearce User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) MIME-Version: 1.0 To: Cygwin List Subject: Using Perl to access serial ports Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit There was some recent discussion about serial ports and Perl. http://sourceware.org/ml/cygwin/2005-05/msg00013.html But I did not see any resolution. Did anyone end up porting either Win32::SerialPort or Win32API::CommPort as Reini suggested? I need to talk to a thermometer via a serial link. The protocol is not very complex. Could I just use a system call to stty to set the baudrate and then pipe the thermometer comand to /dev/ttyS0 and read the response from /dev/ttyS0 using file handles? Reini - you suggested adding cygwin support for Device::SerialPort would be the easiest route. Do you still recommend this? I am not very familiar with Windows API library, but could I just use Win32::API to call some already existing entry points in Windows? Regards, Jason -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/