Serial Port Communuciation in VB with Compact Framework 2.0

A

Adamant

Hi All,

I'm new to programming for PPC's and .NET, coming from a VB6 / Delphi
background.

I've been looking around as apparantly there is an easy way to perform
serial port comunication in VB.net (2005) using the .Net Compact
Framework 2.0.

I've seen a lot of third-party components about but am reluctant to
purchase a component that I will then need to re-purchase if I do
another PPC app with serial port use.

I found an article on MSDN for C# but couldn't find anything anywhere
on VB. If anyone has any sample code for how to connect to the serial
port and send/receive data then I would be very grateful.

Thanks in Advance,
Adam
 
D

Dick Grier

Yes. The System.IO.Ports namespace (SerialPort class) is used. I have
several examples in my book. If you download the VS2005 terminal example
from my homepage, you will get a start. This example is for the desktop --
however, PPC code is (almost) identical.

Feel free to ask specific questions and I'll try to help.

Dick

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

Adamant

Hi,

Thanks for the quick reply - I've downloaded the example and I'll be
working through it.

Looking at your site, the intended application will be a PPC app that
talks to a GPS - the DecodeGPS DLL looks like it will save me loads of
work and make my project complete in no time if the DLL will work ok on
my PPC app.

If so, you've just made my life an awful lot easier :) Even if not,
your book sounds really useful and I'll be able to port the code, I've
already e-mailed Atlantic to check on UK rates + shipping :)

Thanks again for getting back to me so quick, I'll have a look through
the terminal code later on today and try to get it to work on my PPC.

Adam
 
D

Dick Grier

Hi,
If so, you've just made my life an awful lot easier :) Even if not,
your book sounds really useful and I'll be able to port the code, I've
already e-mailed Atlantic to check on UK rates + shipping :)
<<

I suspect that my pricing (see the table on my site) will be lower than
Atlantic's pricing. Let me know if you don't mind (I have no idea how they
sell it, they simply order it is quanties of 10 when they need to restock).

If you purchase from Atlantic, send me a copy of the invoice, and I will
email you the latest version of the source code.

Dick

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

Adamant

I suspect that my pricing (see the table on my site) will be lower than
Atlantic's pricing. Let me know if you don't mind (I have no idea how they
sell it, they simply order it is quanties of 10 when they need to restock).

Your pricing is quite a bit lower! Atlantic want £39.99 ($75) for the
book including shipping wheras for $52.95 sent by PayPal will be
£28.72! Even better is that books are zero-rated for duty and VAT so
can be imported freely! :)

Any ideas how long shipping would take?

Thanks,
Adam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top