From: Dave Burt Date: 2006-04-20T23:56:13+09:00 Subject: Re: Win32 Serial Communications, maybe using mscomm.ocx Eli Bendersky wrote: > I have to deal with the serial port quite a lot at work, and I've > developed a set of C++ and Perl tools for that. I found controlling the > serial port via Perl extremely difficult, and ending up coding a socket > <-> serial port bridge in C++ using the excellent CSerial class, > downloadable from http://home.ict.nl/~ramklein/Projects/Serial.html > > What I now have is a tiny C++ exe (< 100 Kb) that I call from a script > and it communicates via a socket, transmitting both ways, acting as a > gateway. > > Perhaps it would be even better to tie it to a .dll Why not use Win32API? This article demonstrates use of the Windows API in C++, but it's easily translated to Ruby from there. Cheers, Dave