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

C++ getting data from serial/parallel port, how to?

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 it and write it to a file
for later use. I can handle pretty much everything exept the part where
I "listen" to either the serial or parallel (may be USB?) ports for data
from the external source. Any help will be greatly appreciated.

Sonoman
Jul 22 '05 #1
2 1717
On Fri, 30 Jul 2004 01:14:11 -0400, Sonoman <bi*******@microsoft.com>
wrote:
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 it and write it to a file
for later use. I can handle pretty much everything exept the part where
I "listen" to either the serial or parallel (may be USB?) ports for data
from the external source. Any help will be greatly appreciated.

Sonoman


You question is off topic for this group, please read this groups welcome
message for a description of what this group is about and some suggestions
for alternative groups where your question might be on topic.

http://www.slack.net/~shiva/welcome.txt

john
Jul 22 '05 #2
Sonoman posted:
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 it and write it to a file for later use. I can handle pretty much everything exept the part where I "listen" to either the serial or parallel (may be USB?) ports for data from the external source. Any help will be greatly appreciated.
Sonoman


OFF-TOPIC

If your platform is MSWindows, then:

CreateFileEx(...

DeviceIoControl(...
See msdn.microsoft.com

-JKop
Jul 22 '05 #3

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

Similar topics

2
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
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
21
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
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
by: Frank | last post by:
Hello, how to get information about all serial ports in the PC? I use the following code, but i got only the data of the FIRST serial port. All other serial port information are not available...
4
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
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
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
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
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
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,...

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.