J
Josef Moellers
Hi,
I'm helping a friend revive some old hardware (a timekeeping device
using smart cards). I've sorted out all the communications details (ISO
7816) and most of it is working fine. The program is written in (you
guessed it) Perl using Win32::API and Serial-Port.
Now I'd like to add a feature to scan the serial ports for the device,
but rather than assume that any modern PC has 2 serial ports, I'd like
to determine exactly how many serial ports the current system supports.
I've looked at the Registry, but that only carried some information
about the serial ports (if you know which ports you have, you can find
out more). A colleague suggested something like cfgmgr, but there
doesn't seem to be a module for this.
Under a more familiar OS, I'd look at /proc/tty/driver/serial, but on XP?
Josef
I'm helping a friend revive some old hardware (a timekeeping device
using smart cards). I've sorted out all the communications details (ISO
7816) and most of it is working fine. The program is written in (you
guessed it) Perl using Win32::API and Serial-Port.
Now I'd like to add a feature to scan the serial ports for the device,
but rather than assume that any modern PC has 2 serial ports, I'd like
to determine exactly how many serial ports the current system supports.
I've looked at the Registry, but that only carried some information
about the serial ports (if you know which ports you have, you can find
out more). A colleague suggested something like cfgmgr, but there
doesn't seem to be a module for this.
Under a more familiar OS, I'd look at /proc/tty/driver/serial, but on XP?
Josef