473,506 Members | 17,100 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to recieve or sent data through serial or parallel port?

I am writing program that will recieve or sent data to
selected port (users can select which port they want to
recieve or sent) but I don't know how or whick object I
can use.
Nov 20 '05 #1
2 4877
Hello,

"K.K." <mr*****@hotmail.com> schrieb:
I am writing program that will recieve or sent data to
selected port (users can select which port they want to
recieve or sent) but I don't know how or whick object I
can use.


Thomas Scheidegger's (aka NETMaster) Serial Port FAQ:

http://makeashorterlink.com/?M2FE42E83

HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 20 '05 #2
Hi,

These are two different issues. For serial communications, you use the
Windows serial communications APIs. This may be done by using a .NET class
that wraps the functionality of these APIs using Platform Invoke. I have
example code in my book (see below), and there are several examples
available online, both for VB and C# (example, www.msdn.microsoft.com and
search for 101 VB.NET examples). Or, you can use an ActiveX control, like
the free NETComm.ocx that you can download from my homepage. Lastly, there
is at least one commercial comms product for .NET (go to www.saxsoft.net for
this).

For parallel IO, the only way is to use a kernel-mode device driver. There
are no methods built into Windows for this. To make is easy, you can
download IOocx.ocx from my homepage.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
Nov 20 '05 #3

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

Similar topics

2
13155
by: willie | last post by:
Hi, I'm writing a program which requires the use of three serial ports and one parallel port. My application has a scanning devices on each port, which I can access fine with pyserial. ...
3
4180
by: Erik D | last post by:
Hey, Does anyone know if there is something in C that can read the data transfer in the serial/paralel-port? Or can't that be done with C? THX, Erik
2
1721
by: Sonoman | last post by:
Hi all: I tried searching on the net, but I do not even know what I am looking for. What I want to do is to write aprogram using C++ that will gather data from an external microprocessor, format...
21
2956
by: The Man With The Harmonica | last post by:
Hi All, What kind of commands can I use to control the serial and parallel port of my pc. I want to use my laptop instead of microcontrollers and write my software in ANSI C to be used for...
6
2554
by: notregister | last post by:
hi, i have been trying to send a printer-ready data to an unknown printer to print. the reason why the printer is unknown is that i do no wish installed any printer driver. so at the end my...
4
4549
by: ganesah | last post by:
hi, Im working on a project where i need to send binary format data to serial port and output the exact data through parallel port? could anyone explain me how to do, what language should i use ? If...
4
2187
by: ganesah | last post by:
hi, Im working on a project where i need to send binary format data to serial port and output the exact data through parallel port? could anyone explain me how to do it, can i use the C++ language?...
8
37192
by: Ringo | last post by:
I have a micro controller that sends a stream of 102 bytes to the pc. The values range from 0 to 255. I set up my serialport like this sp.BaudRate = 115200; sp.PortName = "COM53"; sp.DataBits =...
3
2615
by: =?Utf-8?B?aXdkdTE1?= | last post by:
hi, is there any way i can send raw data out of the VGA port? i need to control an external piece of hardware but i dont have a serial or parallel port on my computer...can it b done this way?...
0
7220
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7105
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
7371
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...
1
7023
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
5617
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,...
1
5037
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...
0
4702
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...
0
1534
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 ...
0
410
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...

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.