473,480 Members | 3,098 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Reading from the COM Port

VS.NET 2003 / 1.1 Framework

I have a piece of hardware that sends signals over an Ethernet cable through
a USB adapter and into the PC. The USB adapter acts as a COM port for the
PC. The hardware is very simple and does not require any device drivers
(although the USB/COM port adapter does have its own device driver).

I'd like to be able to write a client (Windows Forms) application that can
read the signals coming in via the COM port. I have no experience working
with PC ports or hardware input of any kind.

Can anyone give me some direction on how to read data inbound via the COM
port?

Thanks,

Scott
Jan 23 '06 #1
3 1604
Hi,

I assume you have already installed the correct drivers and software that
emulates
a COM port on your PC.

So to http://msdn.microsoft.com/vbasic/pre...s/default.aspx

Download 101 Samples for VB 2003 and look at Framework - Using the COM Port
mfwoo
"Scott M." wrote:
VS.NET 2003 / 1.1 Framework

I have a piece of hardware that sends signals over an Ethernet cable through
a USB adapter and into the PC. The USB adapter acts as a COM port for the
PC. The hardware is very simple and does not require any device drivers
(although the USB/COM port adapter does have its own device driver).

I'd like to be able to write a client (Windows Forms) application that can
read the signals coming in via the COM port. I have no experience working
with PC ports or hardware input of any kind.

Can anyone give me some direction on how to read data inbound via the COM
port?

Thanks,

Scott

Jan 23 '06 #2
Thanks Woo, I'll check it out. And yes, the USB/COM Port adapter driver is
already installed and working.

"Woo Mun Foong" wrote:
Hi,

I assume you have already installed the correct drivers and software that
emulates
a COM port on your PC.

So to http://msdn.microsoft.com/vbasic/pre...s/default.aspx

Download 101 Samples for VB 2003 and look at Framework - Using the COM Port
mfwoo
"Scott M." wrote:
VS.NET 2003 / 1.1 Framework

I have a piece of hardware that sends signals over an Ethernet cable through
a USB adapter and into the PC. The USB adapter acts as a COM port for the
PC. The hardware is very simple and does not require any device drivers
(although the USB/COM port adapter does have its own device driver).

I'd like to be able to write a client (Windows Forms) application that can
read the signals coming in via the COM port. I have no experience working
with PC ports or hardware input of any kind.

Can anyone give me some direction on how to read data inbound via the COM
port?

Thanks,

Scott

Jan 23 '06 #3
Hi,

You can download DesktopSerialIO.dll from my homepage. It includes a simple
example.

Feel free to ask specific questions here, after you've taken a look at it.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition, ISBN 1-890422-28-2, Mabry Publishing (391 pages, includes CD-ROM).
July 2004.
See www.hardandsoftware.net for details and contact information.
Jan 23 '06 #4

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

Similar topics

0
2741
by: Jaywant Dharwadkar | last post by:
We are developing a Web application on J2EE platform and require to support cetain peripheral devices such as MAGTEK PinPad and Card Swipe (http://www.magtek.com/) connected to a PC port. I am...
4
9058
by: ^CeFoS^ | last post by:
Hello to everybody, I've done an application that draws in a frame the trajectory of a robot. The robot position is readed through the serial port, and several commands are wrote through the...
3
9373
by: JRB | last post by:
I need to read from and write to USB and RS-232 ports in a new project I'm working on. I was thinking about using C#, but I'm not sure if there's a way to do this in that language. If not, any...
21
13018
by: JoKur | last post by:
Hello, First let me tell you that I'm very new to C# and learning as I go. I'm trying to write a client application to communicate with a server (that I didn't write). Each message from the...
6
3262
by: Peter | last post by:
I'm interested to know what ideas are out there for reading a parallel port at a constant sample rate while still allowing the user to interact with the GUI. That is, reading it every 10ms for...
4
2359
by: News | last post by:
Hi Everyone, The attached code creates client connections to websphere queue managers and then processes an inquiry against them. The program functions when it gets options from the command...
16
4129
by: bloggsfred00 | last post by:
I need to read incoming bytes on a COM port but I do not want to have the script hang if there is nothing to read. Is there any way to have PHP interrogate a COM port buffer to see if there is...
10
2481
by: lavida | last post by:
Hi All I was looking for how to read barcodes in background from a wifi reader using VB6. my barcode scanner is a wifi reader. When reading, does the incoming data goes to the COM port? even if...
4
2081
by: Shark | last post by:
Hi, I need a help. My application reads data from COM port, this data is then parsed and displyed on: 1. two plotters 2. text box. I'm using Invoke method to update UI when new data is...
9
14344
by: Hal Vaughan | last post by:
I've done a fair amount of Googling for information on reading the serial port in C++ (and in Linux). Unfortunately, out of every 4 hits, 1 seems to be an unanswered question, 1 is someone saying,...
0
7055
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,...
1
6763
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
7030
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...
0
5367
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
4799
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
4503
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
3015
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...
0
3011
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
574
muto222
php
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.