Perl device IO on Win

J

Jack Schmidt

I want to talk to a device through an RS232 port on a
PC running WinXP. Looks like I can use the POSIX::Termios
class, but I don't know what the file descriptors are for
the serial ports. Anybody?

Also, what about device IO via USB on the same PC?
 
T

Todd W

Jack Schmidt said:
I want to talk to a device through an RS232 port on a
PC running WinXP. Looks like I can use the POSIX::Termios
class, but I don't know what the file descriptors are for
the serial ports. Anybody?

Also, what about device IO via USB on the same PC?

Check out the misterhouse project or even the misterhouse mailing list.
There are some serious hardware <-> perl geeks there.

Todd W.
 
T

The Unnamed Netizen

Todd said:
Check out the misterhouse project or even the misterhouse mailing list.
There are some serious hardware <-> perl geeks there.

Thanks. Looks like they're heavily into X10, though they do
support RS232.

After more searching on CPAN I found what I need:
Win32::SerialPort. Somehow I overlooked that the first
time. Also, looks like I can use fcntl on "COM1". I had
forgotten all about the COM1 and COM2 stuff.

Device::USB appears to be nothing more than a placeholder.
I guess the way to use USB for now is to study up on
Microsoft's standard USB dlls and interface to them via
WIN32::API :-(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,083
Latest member
SylviaHarr

Latest Threads

Top