473,461 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Enumerate Com port Informations

4
I need to enumerate COM Port Details.Specifically i want to know USB Serial Port Information(USB Availability,Status, StatusInfo,Name,Description ).

Thanks
Nov 13 '08 #1
7 1843
IanWright
179 100+
What've you got so far?
Nov 13 '08 #2
Plater
7,872 Expert 4TB
If you have a USB serial port, it will show up just like the other serial ports.

string mySerialPortNames = System.IO.Ports.SerialPort.GetPortNames();



If you want more hardware level information, you can probably get it from WMI. Check out the WMICodeCreator to search into the details
Nov 13 '08 #3
cravi
4
If you have a USB serial port, it will show up just like the other serial ports.

string mySerialPortNames = System.IO.Ports.SerialPort.GetPortNames();



If you want more hardware level information, you can probably get it from WMI. Check out the WMICodeCreator to search into the details

Thank you for your info..,

I already tried WMI for for enuerate USB port info. But i am notable to get these(USB Port Availability, Status, Name, Which Como port currently Used) Information.
Nov 14 '08 #4
cravi
4
What've you got so far?
Now I got only COM Port Name. But I need USB Port Availability, Name, Status , Description, Which Com Port Used all These things.
Nov 14 '08 #5
Plater
7,872 Expert 4TB
What do you mean "USB Port availablity"? There is either something plugged into the usb port, or there isn't.
If you want the SERIALPORT availability, try to connect to it. It will say it's in use if it is.
Nov 14 '08 #6
cravi
4
What do you mean "USB Port availablity"? There is either something plugged into the usb port, or there isn't.
If you want the SERIALPORT availability, try to connect to it. It will say it's in use if it is.
I don't know how to connect .plz help me.

thanks
Nov 17 '08 #7
Plater
7,872 Expert 4TB
Msdn is your friend:
http://msdn.microsoft.com/en-us/libr...rs(VS.80).aspx
Nov 17 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Sven Dzepina | last post by:
Hello people, I want to check with a php script if a port / serverservice is down. It would be great if I can check the ping time, too. But how I can realize that? Gretting from Germany.
2
by: Lionel | last post by:
Hi all, I would like having more informations on how we could exchange informations and/or objects between PERL and JAVA. We have a Java programs that open, maintain and close telnet...
1
by: smichr | last post by:
I see that there is a thread of a similar topic that was posted recently ( enumerate with a start index ) but thought I would start a new thread since what I am suggesting is a little different. ...
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...
6
by: Gregory Petrosyan | last post by:
Hello! I have a question for the developer of enumerate(). Consider the following code: for x,y in coords(dots): print x, y When I want to iterate over enumerated sequence I expect this to...
2
by: eight02645999 | last post by:
hi, i am using python 2.1. Can i use the code below to simulate the enumerate() function in 2.3? If not, how to simulate in 2.1? thanks from __future__ import generators def...
25
by: bmearns | last post by:
Is it possible to specify which port to use as the outbound port on a connection? I have the IP address and port number for the computer I'm trying to connect to (not listening for), but it's...
21
by: James Stroud | last post by:
I think that it would be handy for enumerate to behave as such: def enumerate(itrbl, start=0, step=1): i = start for it in itrbl: yield (i, it) i += step This allows much more flexibility...
2
by: DoB | last post by:
Hi, I would like to get the list of full paths of all files that are currently opened by any process in the system. Is this possible? In short: my program moves a bunch of directories and I...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
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...
0
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...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.