473,796 Members | 2,741 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Port data transfer

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
Nov 13 '05 #1
2 1854
"Erik D" <ma**@erikduist erwinkel.tmfweb .nl> wrote in
<bj**********@a zure.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?

It can be done in C, but not without non-portable extensions to
standardized C (which is the only topic here).
Please refer to a programming NG dedicated to your OS. As you
didn't mention your platform (which would have been off-topic
here either) I cant point you to a specific one, sorry.

Good luck!

Irrwahn

P.S.: there's a FAQ for c.l.c at:
http://www.eskimo.com/~scs/C-faq/top.html
--
If you don't care where you are, then you ain't lost.
Nov 13 '05 #2
"Erik D" <ma**@erikduist erwinkel.tmfweb .nl> writes:
Does anyone know if there is something in C that can read the data
transfer in the serial/paralel-port?
Yes.

If by "something in C" you mean a standardized (and therefore portable)
language feature: the C language itself does not provide such a feature.
You have to use platform-specific facilities.
Or can't that be done with C?


It can, but not in a portable way. If you want to know how it can be done,
please ask in a newsgroup dedicated to your platform.

Martin
Nov 13 '05 #3

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

Similar topics

3
4200
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
3
4590
by: rusttree | last post by:
Many moons ago, I took a class in embedded control at school. The course focused on a micro-controller mounted on a small electric car that was programmed using simple C code. The micro-controller chip had several pins, some of which were for output and some were for input. The crux of the project was to make the program set the ouput pins to high or low to drive the servos and motors and read the input pins that were attached to various...
3
2246
by: Swatcat | last post by:
I have a device that send to my computer information by serial com port. The comunication parameters are: PORT: COM 1 Bits per second: 9600 Data bits: 8 Parity: None (0) Stop bits:1 How can I receive or transfer DATA by COM 1 serial port ???
2
1538
by: Steve Norman | last post by:
Hi All, Is it possible to run an ASP.NET website on any other port except the default of 80? We have a dev site set up on port 81, but when we try to run any ASP pages we get the default 'Runtime Error' message. The same page runs fine on the same machine on port 80.
0
2461
by: ckp21082 | last post by:
I want to develop an application that constantly read Com port Read data comming from COM Port and transfer that data to another computer using Winsock so Hyper Terminal can read it. I am able to transfer data using Winsock but i can not able to read COM Port continously manner so I can get data. I think it is due to COM Port can be opened at once. Can You give me such code so that i can listen COM Port. I Just want to listen data and...
25
3636
by: bmearns | last post by:
Is it possible to specify which port to use as the outbound port on a connection? I have the IP address and port number for the computer I'm trying to connect to (not listening for), but it's expecting my connection on a certain port. Specifically, I'm trying to write an FTP host, and I'm trying to implement the PORT command. From everything I've read, the client supplies the IP address and port number for where I'm supposed to connect...
7
5397
by: davetelling | last post by:
I'm a newbie that is still struggling with OOP concepts & how to make things work they way I want. Using Visual C# Express, I have a form in which I added a user control to display a graph, based upon data received via the serial port. If I run the serial port in the main form code, I can get data and, using public properties of the user control, transfer the data to be shown on the graph. However, I am trying to add a feature that will...
5
2684
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 and save into a file. But here is the problem : I have a copy of the MS-DOS KERMIT communication program.
2
4237
by: mostafijur | last post by:
Hello My PC has 2 ethernet card.I am using 1 port for internet.The 2nd port is connected with another PC and same network address.I want to send data by the 2nd port to that PC on time interval. Can u give me any sugession on to transfer an array or a file from 1 PC to Another PC in a LAN using C programming language ? What types of information I need to learn to write this program? If u have any example it is better for me...
3
4015
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.
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10021
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7558
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6802
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5454
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4130
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 we have to send another system
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.