GIDForums  

Go Back   GIDForums > Computer Programming Forums > CPP / C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 03-Nov-2005, 03:18
Chucara Chucara is offline
New Member
 
Join Date: Nov 2005
Posts: 2
Chucara is on a distinguished road

Programming for serial port


I'm trying to make a program that must read and write data to and from a serial port, but I'm stomped.

Basically, what I need is something like this:

serial_connect() - connect to a given port at a given baud rate.
serial_terminate() - close the connection again
serial_send() - sends data over the serial port

-- and some sort of function for receiving data as well..

Is there a library or similar that I can use?
(Please link or be specific, as I can't seem to find anything anywhere)
Even a short example would be of tremendous help..

I'm using GCC on Linux.
  #2  
Old 03-Nov-2005, 03:59
Paramesh's Avatar
Paramesh Paramesh is offline
Regular Member
 
Join Date: Sep 2005
Location: The Milky Way
Posts: 922
Paramesh is a jewel in the roughParamesh is a jewel in the roughParamesh is a jewel in the rough

Re: Programming for serial port


Hi Chucara,

Welcome to the GID Forums.

You can visit this link for more information:
Linux I/O port Programming

You can visit this link for full fledged serial programming tutorial:
Serial Programming

Cheers,
Paramesh.
__________________

Don't walk in front of me, I may not follow.
Don't walk behind me, I may not lead.
Just walk beside me and be my friend.
  #3  
Old 03-Nov-2005, 04:18
Chucara Chucara is offline
New Member
 
Join Date: Nov 2005
Posts: 2
Chucara is on a distinguished road

Re: Programming for serial port


Excellent, I will look at these later today..

Thanks for the help and the welcome
 
 

Recent GIDBlogNARMY by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] GUI programming with FLTK dsmith FLTK Forum 10 03-Oct-2005 15:41
Problem to read on a serial port collinm C Programming Language 2 30-Mar-2005 01:42
Problem with string and serial port collinm C Programming Language 13 25-Mar-2005 07:39
GUI programming crystalattice CPP / C++ Forum 5 14-Sep-2004 12:17
Send and receive data through port using MFC Dialog Based mithila MS Visual C++ / MFC Forum 1 10-Sep-2004 02:01

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:06.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.