473,398 Members | 2,380 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,398 software developers and data experts.

How to transmit data on a serial port ?

Hi,

What is the right way for transmitting data on the serial port of a PC using
VB.NET (under XP) ?

I used to use the ActiveX MSComm under VB6, which becomes obsolete and needs
a certification, only available if Visual Studio 6 is installed.

Thanks for any Help !!!

Rasha

Nov 21 '05 #1
3 2709
Hi,

Add license for MSComm control
http://support.microsoft.com/default...b;en-us;318597

Access comm port with vb.net
http://support.microsoft.com/default...b;en-us;823179

If you have a copy of the vb.net resource kit there is the free sax.net
community edition control which is for communicating through the comm port.
The vb.net resource kit offer has expired and is no longer available.

Ken
--------------------------

"Rasha" <ra*******@yahoo.fr> wrote in message
news:Oe**************@TK2MSFTNGP09.phx.gbl...
Hi,

What is the right way for transmitting data on the serial port of a PC using
VB.NET (under XP) ?

I used to use the ActiveX MSComm under VB6, which becomes obsolete and needs
a certification, only available if Visual Studio 6 is installed.

Thanks for any Help !!!

Rasha


Nov 21 '05 #2
Hi,

Add license for MSComm control
http://support.microsoft.com/default...b;en-us;318597

Access comm port with vb.net
http://support.microsoft.com/default...b;en-us;823179

If you have a copy of the vb.net resource kit there is the free sax.net
community edition control which is for communicating through the comm port.
The vb.net resource kit offer has expired and is no longer available.

Ken
--------------------------

"Rasha" <ra*******@yahoo.fr> wrote in message
news:Oe**************@TK2MSFTNGP09.phx.gbl...
Hi,

What is the right way for transmitting data on the serial port of a PC using
VB.NET (under XP) ?

I used to use the ActiveX MSComm under VB6, which becomes obsolete and needs
a certification, only available if Visual Studio 6 is installed.

Thanks for any Help !!!

Rasha


Nov 21 '05 #3
You can download NETComm.ocx from my homepage, or use any one of several
free .NET DLLs that are available on the web (I also have one in my book --
see below). A good solution is the Community Serial control that is part of
the free VB .NET Resource Kit (download from Microsoft).

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.
Nov 21 '05 #4

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

Similar topics

3
by: Liu Ju | last post by:
Dear members: I need to write a program in Visual C++ platform that trasmit data through the COM port. The task would be as follows: Whenever the peripheral device sents 1 byte to the computer...
4
by: Tom Van Ginneken | last post by:
Hi, I need to write binary data to a serial port. I am using this function: #include <unistd.h> ssize_t write(int fd, const void *buf, size_t count); I am able to write a alpha-numeric...
1
by: kiran | last post by:
Hi all, I have a problem to communicate with serial port(COM3:). I am able to open the handle but cannot send any data. 1. I connected my motoroala handset to PC through datacable. 2. I...
0
by: QuangPK | last post by:
we have a project to transmit and receive data on serial port (i modify it from VCTERM on MSDN). To transmit text byte I use : void CMainFrame::TxString(CString str) { CString s; VARIANT...
13
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I...
4
by: Petr Jakes | last post by:
I am trying to save data it is comming from the serial port continually for some period. (expect reading from serial port is 100% not a problem) Following is an example of the code I am trying to...
2
by: Lou | last post by:
I have a class that creates an instance of the seril Port. Every thing works fine except whenever I receive data I cannot display the recieved data. I get no errors but the recived data seems to...
7
by: Lou | last post by:
I have a class that uses the serial port class Private SerialPort as New SerialPort When I receive the asyncronous serial port response it appears that data is on a different thread than my...
1
by: Rich | last post by:
Hello, I am working on a python library for sending and receiving data from a Subaru's ECU (the fuel injection computer) via the OBD-II port and an OBD to USB cable, with the Subaru Select Monitor...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...
0
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...

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.