Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / January 2006

Tip: Looking for answers? Try searching our database.

What COM port uses my CF card for serial communication

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lonifasiko - 31 Jan 2006 09:01 GMT
How do I know what COM port is using my Compact Flash card? The card
provides my PDA a serial port.

This is the CF card I've bought:

http://www.cablematic.com/index.php?_cl_id=1&fam=128&p=25&pp=&mode=1&id=90&fam=1
28&pag=2&p=25


Should be always COM1 or CF cards specifically use another port?

Thanks very much.
Graham McKechnie - 31 Jan 2006 10:16 GMT
Lonifasiko,

I'm not so sure I understand your question. I remember from a previous post
that you are aware of SerialPort.GetPortNames(). Why would it matter which
port that the CF card is using, it should be one of them returned by
GetPortNames().

You can always go through the list of ports testing each one until you find
the one that is receiving data.

Graham

> How do I know what COM port is using my Compact Flash card? The card
> provides my PDA a serial port.
[quoted text clipped - 6 lines]
>
> Thanks very much.
Markus Humm - 31 Jan 2006 19:34 GMT
Graham McKechnie schrieb:
> Lonifasiko,
>
[quoted text clipped - 5 lines]
> You can always go through the list of ports testing each one until you find
> the one that is receiving data.

Hello,

this would be silly, because

a) the other device might just not send data -> so you'll never know

b) it takes time to detect that

c) what do you do if different devices send data to different com ports
  parallel? Like a handy via IrDa and another device via Bluetooth and
  then the RS232 device?

Greetings

Markus
<ctacke/> - 31 Jan 2006 12:52 GMT
It may be fixed at a high number, or it might allocate the next available
and therefore be different for different devices.  Check the registry to see
where it put it.  HKLM\Drivers\Active

-Chris

> How do I know what COM port is using my Compact Flash card? The card
> provides my PDA a serial port.
[quoted text clipped - 6 lines]
>
> Thanks very much.
Lonifasiko - 31 Jan 2006 13:57 GMT
Ok. But I see you're sure it's not COM1.

I finally achieved serial communication over ActiveSync serial cable
with a null modem adaptor. That's surely uses COM1.

Should I also need the null modem adaptor for CF card? This morning I
checked the registry and tried with all the possible ports there COM3,
COM2, COM9, COM5, COM8, but I did not see any CF indication in the
registry in an specific port. In other words, I had no success.

Nevertheless, I think I should try again my CF card with all ports in
the registry and with the null modem adaptor.

Thanks.
Paul G. Tobey [eMVP] - 31 Jan 2006 16:09 GMT
It could be COM1; it just depends on how the device manufacturer sets up the
registry and what the installation of the CF card does to it.

There's absolutely no reason to try all possible COM ports!  As Chris said,
read that branch of the registry and find which COM ports are active.  You
may be able to tell, based on the driver name associated with them, which is
the one for your card, also.  If you have at most two ports, then you could
try both of those, but it's a silly waste of time to try five ports, if
there are only two valid COM names in the registry.

Generally speaking, all serial ports are going to just have receive and
transmit lines at their outputs in default locations (pins 2 and 3, if I
remember right).  Whether you need a null modem cable or not depends on what
each device actually does. *We* can't tell you without physically reading
the manual for your card, for the device at the other end of the cable, etc.

Paul T.

> Ok. But I see you're sure it's not COM1.
>
[quoted text clipped - 10 lines]
>
> Thanks.
Chris Tacke, MVP - 31 Jan 2006 17:21 GMT
No, I'm not sure of anything.  You have the device, not me.  Look in the
registry - the system can tell you what drivers it have available
(HKLM\Drivers\BuiltIn) and which are active (HKLM\Drivers\Active).  That's
like me asking you specific info about my hardware.

-Chris

> Ok. But I see you're sure it's not COM1.
>
[quoted text clipped - 10 lines]
>
> Thanks.
Dick Grier - 31 Jan 2006 18:44 GMT
Hi,

Should I also need the null modem adaptor for CF card? This morning I
checked the registry and tried with all the possible ports there COM3,
COM2, COM9, COM5, COM8, but I did not see any CF indication in the
registry in an specific port. In other words, I had no success.
<<

You would not use a null-modem adapter with the CF card, unless you are
connecting to another PC or PPC.  If connecting to some other equipment
(such as a laboratory instrument) you would just connect using the supplied
cable without an adapter.

Every Compact Flash serial adapter that I have used (several different
vendors) assigned Com4 to that port.

Dick

Signature

Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition, ISBN 1-890422-28-2, Mabry Publishing (391 pages, includes CD-ROM).
July 2004.
See www.hardandsoftware.net for details and contact information.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.