From: Eli Bendersky Date: 2006-04-19T23:34:36+09:00 Subject: Re: Win32 Serial Communications, maybe using mscomm.ocx Luis Lavena wrote: > John Johnson wrote: >> Luis, >> >> Thanks for the suggestions! >> >> The printer can user DTR or XOn/XOff. The ruby-serialport package >> doesn't support DTR on Windows, and the XOn/XOff doesn't seem to work. >> The symptom is, when I send labels without a sleep(3.5) between each, >> it prints the first few, the buffer fills, several labels are dropped, >> and it continues printing, the cycle repeats. >> >> I'll look into FreeBasic. I had downloaded it, but never got around to >> looking into it. If I could write a DLL or spooler program with it, >> that would be great. >> >> Thanks again! I'd just like to suggest an alternative. 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 -- Posted via http://www.ruby-forum.com/.