Society of Robots - Robot Forum

Software => Software => Topic started by: Admin on November 26, 2008, 09:07:43 AM

Title: what are com port hex values for COM5-8
Post 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).
Title: Re: what are com port hex values for COM5-8
Post by: Webbot on November 26, 2008, 11:53:21 AM
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.
Title: Re: what are com port hex values for COM5-8
Post by: pomprocker on November 26, 2008, 11:57:02 AM
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.
Title: Re: what are com port hex values for COM5-8
Post by: pomprocker on November 26, 2008, 12:05:05 PM
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)
Title: Re: what are com port hex values for COM5-8
Post by: Admin on November 27, 2008, 05:32:47 AM
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?
Title: Re: what are com port hex values for COM5-8
Post by: pomprocker on November 27, 2008, 01:29:59 PM
I think so, and I'm not sure how to do that  :-\