If you can open it with MSCOMM, it's a serial port. It doesn't matter
if it's a physical port, a virtual port, or a USB-hosted port.
--
Jim Mack
Twisted tees at http://www.cafepress.com/2050inc
"We sew confusion"
Unfortnatly I don have any serial or serial USB devices but
Number of serial devices might be found at HKEY_LOCAL_MACHINE\SYSTEM
\CurrentControlSet\Services\Serial\Enum\Count
Do they differ in any way? I use them alike from VB with no problems
so far...
//CY
Also, does anyone recommend a good USB to Serial RS232 converter?
Why do you need to know that? I can't think of any reason to limit a
software from using USB-to-Serial converters. For you, they behave the same.
You can use WMI to obtain the port description for installed ports. I have
code examples for this in my book (below). I also provide a modified
version of MSComm32.ocx that allows you to open ports higher than 16, which
often happens these days. If you send me email, I will reply with that OCX
attached.
However... USB serial adapters are used just like any other serial adapter.
Do you really need to know whether or not is is USB (virtual serial port)
vs. hardware? You just set the CommPort number and Settings, (etc.), and
go.
In answer to your other question, I tend to prefer USB serial adapters that
are based on the FTDI chipset. These seem to be reliable across all OS
--
Richard Grier, Consultant, Hard & Software 12962 West Louisiana Avenue
Lakewood, CO 80228 303-986-2179 (voice) Homepage: www.hardandsoftware.net
Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004, Revised July
2006.
Isn't that an oxymoron ?!?!?!?!!?
"Nobody" wrote:
> .
>
Yep, USB is serial... as RS-485, RS-422 (Still handy, like the cable
length/multidrop and still async), and the new nice hard drives
connect with SATA.
Serial isnt all, can be parallel like IEEE-1284 (Centronics port if
anyone remember, If my memory dont fail me) and you still can talk to
them.
For the Q about nr of zerials , look at my earlier post. You have to
test it, I cant! (Or, I wont ;) Happy New Year) //CY
In my case, I see my Sprint dongle showing up in that serial area.
But I do not see a generic descriptor.
Hope I do not have to sort through millions of different devices to
determine what is attached.
I need somthing distributable!
Suggestions please.
And thanks for the tip on the FTDI chipset! That really helps me.
For example: (this laptop has no Serial RS232 port)
Name Sprint Connection Manager NMEA Port (COM7)
Status OK
PNP Device ID NMEA\PORTB\1&5&NMEAAPP0
Maximum Input Buffer Size 0
Maximum Output Buffer Size No
Settable Baud Rate Yes
Settable Data Bits Yes
Settable Flow Control Yes
Settable Parity Yes
Settable Parity Check Yes
Settable Stop Bits Yes
Settable RLSD Yes
Supports RLSD Yes
Supports 16 Bit Mode No
Supports Special Characters No
Baud Rate 9600
Bits/Byte 8
Stop Bits 1
Parity None
Busy No
Abort Read/Write on Error No
Binary Mode Enabled Yes
Continue XMit on XOff No
CTS Outflow Control No
Discard NULL Bytes No
DSR Outflow Control 0
DSR Sensitivity 0
DTR Flow Control Type Enable
EOF Character 26
Error Replace Character 0
Error Replacement Enabled No
Event Character 0
Parity Check Enabled No
RTS Flow Control Type Disable
XOff Character 19
XOffXMit Threshold 512
XOn Character 17
XOnXMit Threshold 2048
XOnXOff InFlow Control 0
XOnXOff OutFlow Control 0
Driver c:\windows\system32\drivers\pctnullport.sys (2.0.2.0, 37.77 KB
(38,680 bytes), 12/2/2009 12:12 PM)
Yes, but true RS-232 is not all serial comm, but normally all thing
that hook up to th before mentioned reg entry (not tested, but thats
what I think right now), the electrical interface is not interesting
but all noted there should be a serial communication device as you now
know them.
Nown 00:10 so I can report: its not been so bad this year soo far ;)
ohh, here comes some more fireworks gottago...
If you find _any_ serial port then there's no need to suggest that the user
install one.
"Bee" <B...@discussions.microsoft.com> wrote in message
news:0C6A54FE-59B5-4DF1...@microsoft.com...
As far as your software is concerned, they are both equally real. Perhaps
what you were looking for is finding which COM port exists. Start with port
1, then try to open it and trap any error. You get different errors if the
port is in use or if it doesn't exist. Then increment the port number and
try again, or simply let the user specify the port to use from a long
drop-down list.
oops 378/278 sorry---
We use ones from B&B electronics (www.bb-elec.com). They have several
different kinds.
D
There is pretty much only one chipset available.
Every USB to serial device I've seen uses the Prolific PL2303 chipset
which is then put in an adapter with very little electrical difference
between all the manufacturers.
--
Dee Earley (dee.e...@icode.co.uk)
i-Catcher Development Team
iCode Systems
Having said that, I came across an Intel based one this afternoon... :)
I'd say the FTDI-based converters are at least as common.