473,750 Members | 2,253 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2739
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*******@yaho o.fr> wrote in message
news:Oe******** ******@TK2MSFTN GP09.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*******@yaho o.fr> wrote in message
news:Oe******** ******@TK2MSFTN GP09.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
3940
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 through the RX pin of the COM Port, the program will send 4 bytes to the TX pin to peripheral device. do you know any source or the class in Visual C++ on the Internet that can reliably transmit data through COM port ?
4
11161
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 character to the port using this: write (filedescriptor,"a",1);
1
2551
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 installed valid driver to detec the motorla(V400) handset 3. I tested the handset through Hypertermal and succssfully sending any data. 4. I opened the Control Panel -> Phone and Model window and clicked the modem tab and I saw that the Motorola...
0
1485
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 vCommOut; vCommOut.vt = VT_BSTR; vCommOut.bstrVal = str.AllocSysString(); mCommCtrl.SetOutBufferCount(0); mCommCtrl.SetOutput(vCommOut);
13
6209
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 am sending a short message to a group of embedded boxes daisy chained via the serial port. When I send a 'global' message, all the connected units should reply with their Id and Ack in this format '0 Ack' To be certain that I didn't miss a...
4
2662
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 write. It works, but it produce an empty gz file (0kB size) even I am sure I am getting data from the serial port. It looks like g.close() does not close the gz file. I was reading in the doc: Calling a GzipFile object's close() method does...
2
6184
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 just go no where. I can see the recived data in my serial receive function but when I either raise an event with it or try to display it in a text box nothing happens. I do use beginInvoke on the text box. If I trace the code through it all...
7
4083
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 UI. When I try to raise an event in my class my frmMain doesn't get the callback. i think this is a threading issue. Question is how do I get the serial port response from my vb class to my main form.
1
15096
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 protocol. There are a few open source programs that do this already (http://romraider.com/ , http://jdash.sourceforge.net/ , http://tari.co.za/downloads/software/source/ ), but they are written in Java or C++. I have never done anything with serial...
1
9338
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8260
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6803
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6080
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4885
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3322
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
2
2798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2223
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.