delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/31/04:19:58

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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: <429C1E0A.3050503@ieee.org>
Date: Tue, 31 May 2005 09:19:22 +0100
From: Jason Pearce <jason DOT pearce AT ieee DOT org>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
MIME-Version: 1.0
To: Cygwin List <cygwin AT cygwin DOT com>
Subject: Re: Using Perl to access serial ports

This is just a bit of an update.

I have got Win32::SerialPort working, at least a limited capacity.

After taking a look at the source for it, I discovered that this module 
is actually just straight Perl, and it relies on Win32::API. I have 
already been using /Reini's cut down version of this for some time, and 
so I thought this might work. And it does, at least for the simple 
functions.
ie I can set the baud rates, parity etc. Write a few bytes and read them 
back after waiting enough time for the external device to reply. This 
functionality is actually all I needed to read my precision thermometer.

Since Reini's Win32:API module does not support call backs any 
Win32::SerialPort functions that utilise the call backs will not work. I 
have not had the chance to delve into exactly what functions that is 
yet. I plan to look further into that, but I have limited time to devote 
to this - especially now main goal is achieved.

Regards,
Jason

ps. I was never able to get the /dev/com1 or /dev/ttyS1 devices working. 
I expected that I would be able to echo commands into /dev/com1 and cat 
replies from it.
///

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019