Transfer through serial port

  • Thread starter Thread starter Joseph Rea
  • Start date Start date
J

Joseph Rea

I'm a newbie in this area. What is the best approach for
receiving/sending information through the serial port? I
will be using a symbol handheld connected to an enfora box
located on a truck and the enfora specs have you set up a
dummy ppp dialup conection. Any advice is appreciated.
 
The first thing I tried was reviewing the newsgroups but it was a bit
overwhelming. The last time I did such a transfer was with vb6 and it
was quite simple using the mscomm.ocx.

What I need to know... Is there a standard way of communicating through
the serial port or are we all re-engineering the wheel?

Thanks
 
Well, there's the Win32 API. You can't get much more basic than that. It
uses CreateFile, ReadFile, WriteFile, SetCommState, etc. just like the
desktop does. I've never seen the advantage of MSCOMM. Once you write the
serial code once to call the APIs, you never have to write it again.

You might view this message (from the archives, of course; I *do* have a
link to it):

http://groups.google.com/groups?hl=...soft.public.dotnet.framework.compactframework

Paul T.
 
And some day MS will publish the C# wrapper that I wrote that exposes the
same object model as MSCOMM for those who like the familiarity.
 
Hi,

Well, if this were a standard "dumb" serial connection, you could download
the CFSerialIO dll (free) from my homepage. However, when you say ppp
dialup connection, this implies a dialup network connection, using TCP/IP.
Is that accurate?

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 
Hi,

BTW, the only enfora that I see on the web is a wireless systems provider,
not wired. Do you have a link to more information?

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 
Back
Top