Author Topic: what are com port hex values for COM5-8  (Read 13008 times)

0 Members and 1 Guest are viewing this topic.

Offline AdminTopic starter

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
what are com port hex values for COM5-8
« 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).

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,165
  • Helpful? 111
    • Webbot stuff
Re: what are com port hex values for COM5-8
« Reply #1 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.
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: what are com port hex values for COM5-8
« Reply #2 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.
« Last Edit: November 26, 2008, 12:11:42 PM by pomprocker »

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: what are com port hex values for COM5-8
« Reply #3 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

Offline AdminTopic starter

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: what are com port hex values for COM5-8
« Reply #4 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?

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: what are com port hex values for COM5-8
« Reply #5 on: November 27, 2008, 01:29:59 PM »
I think so, and I'm not sure how to do that  :-\

 


Get Your Ad Here