473,387 Members | 1,464 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,387 software developers and data experts.

Controlling Serial Ports

Ste
I work with serial ports all day. I know all about them from an outsiders
point of view, but I'd like to know all about them from a programmers point
of view. I'd like to make my own very 'very' simple terminal program using
C++ to access the serial ports on a pci card. Eventually I want to send data
out and receive it back in but for now I want to get to grips with what it
takes to open the port(s) and close them.

Can anyone point me in the right direction of some useful material I can
read?

Ste

Jul 22 '05 #1
2 1439
On Sun, 27 Jun 2004 18:15:01 -0700, "Ste"
<ne**@homecomptr.freeserve.co.uk> wrote:
I work with serial ports all day. I know all about them from an outsiders
point of view, but I'd like to know all about them from a programmers point
of view. I'd like to make my own very 'very' simple terminal program using
C++ to access the serial ports on a pci card. Eventually I want to send data
out and receive it back in but for now I want to get to grips with what it
takes to open the port(s) and close them.

Can anyone point me in the right direction of some useful material I can
read?

Ste

The language sites you posted to are dedicated to the standard C++
language, which knows nothing about hardware or operating system
specific details. You really must ask about this on a forum dedicated
to you operating system and hardware platform. On your way, you might
try
http://www.lvr.com/serport.htm

Jul 22 '05 #2
r norman posted:
On Sun, 27 Jun 2004 18:15:01 -0700, "Ste"
<ne**@homecomptr.freeserve.co.uk> wrote:
I work with serial ports all day. I know all about them from an
outsiders point of view, but I'd like to know all about them from a
programmers point of view. I'd like to make my own very 'very' simple
terminal program using C++ to access the serial ports on a pci card.
Eventually I want to send data out and receive it back in but for now I
want to get to grips with what it takes to open the port(s) and close
them.

Can anyone point me in the right direction of some useful material I
can read?

Ste

The language sites you posted to are dedicated to the standard C++
language, which knows nothing about hardware or operating system
specific details. You really must ask about this on a forum dedicated
to you operating system and hardware platform. On your way, you might
try
http://www.lvr.com/serport.htm


For Windows, take a look at:

OpenFileEx
DeviceIoControl
-JKop
Jul 22 '05 #3

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

Similar topics

4
by: M. Raab | last post by:
i have written an application that utilizes serail ports. In order not to have to reinvent code, I decided to use John Hind's sample code that he presented in MSDN magazine last year (Serial Comm:...
13
by: Al the programmer | last post by:
I need to access the serial ports on my webserver from an asp.net page. I have no problem accessing the serial ports from a windows form application, but the code doesn't work in asp.net. I have...
1
by: David | last post by:
I have written an application in VB.NET 2003 that uses the SAX serial component for RS232 communications with hardware. The program sets up 2 serial ports so that it can talk to 2 different...
1
by: henrycortezwu | last post by:
Hi All, I'm trying to connect to a virtual port (COM19, OUTGOING, "Bluetooth Serial Port") using VS2005 System.IO.Ports. When I ran the ff code below here's what happens. 1) VS2005 Compiles w/o...
3
by: Tom Brown | last post by:
Hey people, I've written a python app that r/w eight serial ports to control eight devices using eight threads. This all works very nicely in Linux. I even put a GUI on it using PyQt4. Still...
2
by: joaquimfpinto | last post by:
Dear All, I made an app in c# that uses several serial ports. For the serial ports I use a pnp Sunix board, some with 8 serial ports other with 4 or even 2 serial ports. Whenever I use the...
4
by: bluesteel | last post by:
Hi, guys. I am currently trying to develop a program made under c++ that could control a robot, i mean movement. I thought of using computer ports like serial or parallel which is not a bad idea....
3
by: naveen.sabapathy | last post by:
Hi, I am trying to use virtual serial ports to develop/test my serial communication program. Running in to trouble... I am using com0com to create the virtual ports. The virtual ports seem to...
2
by: Nasif | last post by:
Currently I am writing a program which sends and receives messages through serial port to a device. I am using C# and Microsoft Visual studio 2005 for windows program. But my problem is when i try...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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...

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.