473,320 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Serial Port Communuciation in VB with Compact Framework 2.0

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

Aug 16 '06 #1
4 5472
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.
Aug 16 '06 #2
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

Aug 17 '06 #3
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.
Aug 17 '06 #4
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

Aug 17 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Daniel Åberg | last post by:
I can't find how I can, in c#, open a serial port and read and write to it. Anyone that knows if there is any namespace with methods or code example.
1
by: Chris | last post by:
Hi, I'm trying to find out if a serial communication dll exists that would allow me to communicate to devices connected on the com port through .net. My implementation language will be C#. I...
4
by: Dave | last post by:
How do I send some data to serial port (for example COM1:) in C#? It will be nice if you will show me some example.
1
by: Daniel Passwater via DotNetMonster.com | last post by:
I've written an app in C# in the compact framework. I've got a serial connection with a device running embedded C. We are using no flow control. That's not optional at this point. We are talking at...
0
by: Daniel | last post by:
Ive used the New Serial Port Namespace in Net Framework 2 to write a Serial Port Monitoring Application. Basically the program opens the serial port and listens for any data that is received. It...
2
by: evle | last post by:
haw to read data from an Infrared Infrared Remote Control
4
by: rowan | last post by:
I'm writing a driver in Python for an old fashioned piece of serial equipment. Currently I'm using the USPP serial module. From what I can see all the serial modules seem to set the timeout when...
5
by: chriswall | last post by:
SerialNET.Port -------------------------------------------------------------------------------- Can anybody tell me how to use SerialNET.Port in Visual Studio 2005. I am currently developing...
4
by: max_mont | last post by:
Hi all, I'm a newbie in .NET technology. I've already developed Serial communication applications in C++ (WIN32). And I wanted to migrate to .NET technology. There is a serial component in...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.