473,405 Members | 2,294 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,405 software developers and data experts.

data transfer from port

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

Jul 19 '05 #1
3 4169

"Erik D" <ma**@erikduisterwinkel.tmfweb.nl> wrote in message
news:bj**********@azure.qinip.net...
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


Who knows this is a C++ group. Try news:comp.lang.c, I suspect that the
answer will be, 'It depends on your operating system' (pretty obvious
really), so why not try a group about whatever operating system you happen
to be using.

john
Jul 19 '05 #2
Erik D wrote:
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


Reading from the serial, parallel, USB, I2C, and Firewire ports can
be read from C and C++ with a little help from platform specific
functions.

Reading from the serial port could be as easy as:
char read_serial_port(void)
{
volatile char * Uart_rx_reg = (volatile char *)(0x43000);
return *Uart_rx_reg;
}

But then, it could be more complicated, especially if your
platform doesn't have a serial port.

By the way, some serial ports are different than the
parallel ports.
--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book

Jul 19 '05 #3
John Harrison wrote:

"Erik D" <ma**@erikduisterwinkel.tmfweb.nl> wrote in message
news:bj**********@azure.qinip.net...
Hey,
Does anyone know if there is something in C that can read the data transfer
in the serial/paralel-port?

Who knows this is a C++ group. Try news:comp.lang.c, I suspect that the
answer will be, 'It depends on your operating system' (pretty obvious
really), so why not try a group about whatever operating system you happen
to be using.

In fact, he already posted there and got pretty much that response.
Demonstrates an appalling lack of usenet skills, as he multiposted to
groups, posted in the wrong groups, did not lurk for the required time,
blah blah blah.


Brian Rodenborn
Jul 19 '05 #4

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

Similar topics

7
by: Chris | last post by:
Here's the situation: I work at a scientific institution and I have a portable electronic device which is used to take measurements. The device produces a very small amount of numerical data,...
9
by: David Harris | last post by:
Ok, so I'm semi-new to .NET, having done everything manually with SQL code back in VB6. So before I program this up completely manually again, I thought I'd ask for better ways to think through...
10
by: Uma - Chellasoft | last post by:
Hai, I am new to VB.Net programming, directly doing socket programming. In C, I will be able to map the message arrived in a socket directly to a structure. Is this possible in VB.Net. Can...
4
by: Luvin lunch | last post by:
Hi, I've developed a worklist system in Access and I plan to deploy four copies of it to the four users that need it. I said I'll be deploying copies because there is no shared network in the...
5
by: chapeau_melon | last post by:
Hello, I'm basicly not a programmer... I found some C++ codes on the net that almost satisfy me needs, wich is to communicate with an other device that sends data to me, wich I have to receive...
4
by: Andrew Jackson | last post by:
I am writing a newsgroup client. I have the protocol figured out. But I get slow transfer speeds off any of the network objects read the data from For example one of the commands for a news...
3
by: karthi84 | last post by:
hi i need to transfer data between two stand alone pc. is it possible for transfer of data between 2 pc using usb port of the 2 machines. both the pc are using windows xp sp2.
1
by: archdin | last post by:
Hello experts, I m working in SAP. But this time i m working on program of weighbridge. An ABAP application is developed to get the vehicle and material information along with the gross and...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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
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...

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.