473,545 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8399
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_MACH INE/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.co m> wrote in message
news:jY******** *************@n ews20.bellgloba l.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_MACH INE/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.co m> wrote in message
news:41******** *************@d read16.news.tel e.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******** *************@t wister01.bloor. is.net.cable.ro gers.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.co m> wrote in message
news:41******** *************@d read16.news.tel e.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******** *************@d read16.news.tel e.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******** *************@t wister01.bloor. is.net.cable.ro gers.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.co m> wrote in message
: > news:41******** *************@d read16.news.tel e.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
9066
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 same port to change the direction of the robot. The trajectory frame is managed by an applet, and the project works good when the applet is called by...
2
13160
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. However, I'm unsure of how exactly I should be designing the program, I thought I could use threading to start class: class scanner(Thread): def...
3
5029
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', '\0', '\1', 'Z', '0', '0',
13
4797
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 been told it is not possible to access the serial ports from asp.net. The application is used to control custom hardware. The hardware is...
4
11165
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. What I would like to do is make the serial port accessible via a web service. The web service and the legacy application would be running on the...
4
17788
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 with this code sample: ManagementObjectSearcher searcher = new ManagementObjectSearcher("Select * from WIN32_SerialPort");
13
6173
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 am sending a short message to a group of embedded boxes daisy chained via the serial port. When I send a 'global' message, all the connected units...
4
11684
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 you open a serial port. This is not what I want to do. I need to change the timeout each time I do a "read" on the serial port, depending on which...
3
11554
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 be working fine when I test it with Hyperterminal . I am using the example program that comes with pyserial, as below. --------------- import...
6
6636
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 '%' to serial port and make sure it reached the serial port. 2. Once confirmed, send another character.
0
7484
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7675
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7775
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5997
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5344
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4963
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3451
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1902
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
726
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.