473,386 Members | 2,078 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

serial port

ST
I want my program to show the number and name of the serial ports on my
computer in the same style at e.g. Hyperterminal. Like,,,if the computer has
2 serial ports there will only be 2 serial ports on the list,,,or 10 if the
computer has 10.

Any suggestions on how this can be done ?
Jul 17 '05 #1
5 8396
ST wrote:
I want my program to show the number and name of the serial ports on my
computer in the same style at e.g. Hyperterminal. Like,,,if the computer has
2 serial ports there will only be 2 serial ports on the list,,,or 10 if the
computer has 10.

Any suggestions on how this can be done ?


The current ports are listed in the registry:
HKEY_LOCAL_MACHINE/HARDWARE/DEVICEMAP/SERIALCOMM (on winXP)

Reading from here works well because this list is dynamically created
(i.e. if a virtual serial port is created via USB)

Hope this helps,

Jamie
Jul 17 '05 #2
ST
I'm sure it does, thanks.

"jamie" <ja***@noway.com> wrote in message
news:jY*********************@news20.bellglobal.com ...
ST wrote:
I want my program to show the number and name of the serial ports on my
computer in the same style at e.g. Hyperterminal. Like,,,if the computer has 2 serial ports there will only be 2 serial ports on the list,,,or 10 if the computer has 10.

Any suggestions on how this can be done ?


The current ports are listed in the registry:
HKEY_LOCAL_MACHINE/HARDWARE/DEVICEMAP/SERIALCOMM (on winXP)

Reading from here works well because this list is dynamically created
(i.e. if a virtual serial port is created via USB)

Hope this helps,

Jamie

Jul 17 '05 #3
like this? ... http://vbnet.mvps.org/code/system/comtestmscomm.htm or
http://vbnet.mvps.org/code/system/comtestapi.htm

--

Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.
"ST" <No*@valid.com> wrote in message
news:41*********************@dread16.news.tele.dk. ..
:I want my program to show the number and name of the serial ports on my
: computer in the same style at e.g. Hyperterminal. Like,,,if the computer
has
: 2 serial ports there will only be 2 serial ports on the list,,,or 10 if
the
: computer has 10.
:
: Any suggestions on how this can be done ?
:
:

Jul 17 '05 #4
ST
What this code does, is giving me the active ports on the computer. Not the
amount of installed ports on the computer.
"Randy Birch" <rg************@mvps.org> wrote in message
news:Ar*********************@twister01.bloor.is.ne t.cable.rogers.com...
like this? ... http://vbnet.mvps.org/code/system/comtestmscomm.htm or
http://vbnet.mvps.org/code/system/comtestapi.htm

--

Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.
"ST" <No*@valid.com> wrote in message
news:41*********************@dread16.news.tele.dk. ..
:I want my program to show the number and name of the serial ports on my
: computer in the same style at e.g. Hyperterminal. Like,,,if the computer
has
: 2 serial ports there will only be 2 serial ports on the list,,,or 10 if
the
: computer has 10.
:
: Any suggestions on how this can be done ?
:
:

Jul 17 '05 #5
Then you want this ... http://vbnet.mvps.org/code/enums/enumports.htm

--

Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.
"ST" <ST@notvalid.dk> wrote in message
news:41*********************@dread16.news.tele.dk. ..
: What this code does, is giving me the active ports on the computer. Not
the
: amount of installed ports on the computer.
:
:
: "Randy Birch" <rg************@mvps.org> wrote in message
: news:Ar*********************@twister01.bloor.is.ne t.cable.rogers.com...
: > like this? ... http://vbnet.mvps.org/code/system/comtestmscomm.htm or
: > http://vbnet.mvps.org/code/system/comtestapi.htm
: >
: > --
: >
: > Randy Birch
: > MVP Visual Basic
: > http://vbnet.mvps.org/
: > Please respond only to the newsgroups so all can benefit.
: >
: >
: > "ST" <No*@valid.com> wrote in message
: > news:41*********************@dread16.news.tele.dk. ..
: > :I want my program to show the number and name of the serial ports on my
: > : computer in the same style at e.g. Hyperterminal. Like,,,if the
computer
: > has
: > : 2 serial ports there will only be 2 serial ports on the list,,,or 10
if
: > the
: > : computer has 10.
: > :
: > : Any suggestions on how this can be done ?
: > :
: > :
: >
:
:

Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: ^CeFoS^ | last post by:
Hello to everybody, I've done an application that draws in a frame the trajectory of a robot. The robot position is readed through the serial port, and several commands are wrote through the...
2
by: willie | last post by:
Hi, I'm writing a program which requires the use of three serial ports and one parallel port. My application has a scanning devices on each port, which I can access fine with pyserial. ...
3
by: collinm | last post by:
hi i send a command to a led display, the led display is suppose to return me some character i write a string on a serial port void ledDisplayExist() { char msg={'\0', '\0', '\0', '\0',...
13
by: Al the programmer | last post by:
I need to access the serial ports on my webserver from an asp.net page. I have no problem accessing the serial ports from a windows form application, but the code doesn't work in asp.net. I have...
4
by: joe bloggs | last post by:
I am writing a mobile application to interface with a legacy system and I am planning to use web services to communicate with this system. The legacy system receives data through a serial port. ...
4
by: Frank | last post by:
Hello, how to get information about all serial ports in the PC? I use the following code, but i got only the data of the FIRST serial port. All other serial port information are not available...
13
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I...
4
by: rowan | last post by:
I'm writing a driver in Python for an old fashioned piece of serial equipment. Currently I'm using the USPP serial module. From what I can see all the serial modules seem to set the timeout when...
3
by: naveen.sabapathy | last post by:
Hi, I am trying to use virtual serial ports to develop/test my serial communication program. Running in to trouble... I am using com0com to create the virtual ports. The virtual ports seem to...
6
by: terry | last post by:
Hi, I am trying to send a character to '/dev/ttyS0' and expect the same character and upon receipt I want to send another character. I tired with Pyserial but in vain. Test Set up: 1. Send...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.