Society of Robots - Robot Forum
Software => Software => Topic started by: Admin on November 26, 2008, 09:07:43 AM
-
COM port hex values for COM1-4 are 0x3f8, 0x2f8, 0x3e8, 0x2e8
However for the life of me I cannot find the values for COM5-8. Anyone know them?
This page seems to list them:
http://www.rtty.com/development/software/rtty.c
however COM4 isn't correct (at least I don't think so).
-
If you've got that number of COM ports then, chances are, that you have a special multi-port board. Different board manufacturers tend to use different I/O ports, or they can be set with jumpers, and then they have their own device driver files to use with the O/S.
-
COM1-4 are standard, COM5-11 are virtual, so I believe their base address changes on every system.
You'd have to check out the properties of the com port, and then look at the resource tab. Should give you the address range.
-
You'd have to read your systems device file.
Here is more info on Virtual Serial Ports
http://en.wikipedia.org/wiki/Serial_port#.22Virtual.22_serial_ports (http://en.wikipedia.org/wiki/Serial_port#.22Virtual.22_serial_ports)
-
Well . . . I'm writing software to not just work on my PC but various other Windows machines too.
Would this mean that my software would need to have some sort of auto-detection for virtual ports?
-
I think so, and I'm not sure how to do that :-\