473,587 Members | 2,267 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5490
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
1913
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
9683
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 was able to find MSCOMM.OCX but that is an ActiveX control which requires a gui (i believe?). Eventually, the application I will be running will be...
4
13307
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
3977
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 19200 baud, 8 bits, no parity, one stop bit. I can't get stable communication into my side. Symptoms: If we put interrupts in the embedded C (also...
0
1466
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 then added it to a Rich Text Box showing the data in either Hex or Text as well as any control characters. The program works perfectly on Windows...
2
3779
by: evle | last post by:
haw to read data from an Infrared Infrared Remote Control
4
11705
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 you open a serial port. This is not what I want to do. I need to change the timeout each time I do a "read" on the serial port, depending on which...
5
13519
by: chriswall | last post by:
SerialNET.Port -------------------------------------------------------------------------------- Can anybody tell me how to use SerialNET.Port in Visual Studio 2005. I am currently developing a project in vb.net for Windows Mobile 5.0 Compact Framework 2.0. When I use the following syntax:- Dim objport as New SerialNET.Port I get an...
4
4801
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 framework to read and write on serial port. I would like to make asynchronous reception. I saw that we can pass a delegate to the serial class which is...
0
7843
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8205
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
6619
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5712
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3872
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2347
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.