LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-14-2005, 08:05 PM   #1
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
programming to 'real' serial port in C++


what will I need to program to a serial port(not modem/ethernet) in C++? I'm really new at c++, and I'm doing a science fair project where I take the data coming in from a serial port connected thermometer, and output it to various places(MySql database, screen, text file, etc.). Thoughts?
 
Old 03-14-2005, 08:51 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Have never looked at C++ for this so far, but
maybe you can utilise
man tty_ioctl
man ioctl



Cheers,
Tink
 
Old 03-15-2005, 03:18 AM   #3
Marius2
Member
 
Registered: Jan 2004
Location: Munich
Distribution: SuSE 9.2, 10.2, 10.3, knoppix
Posts: 276

Rep: Reputation: 31
http://www.google.de/search?hl=de&ie...amming+C&meta=

for example:

http://www.faqs.org/docs/Linux-mini/...ogramming.html
http://www.faqs.org/docs/Linux-HOWTO...ing-HOWTO.html
http://www.easysw.com/~mike/serial/serial.html

The three manuals above are quite ok IMHO, I used them when I had to do serial port programming recently.


HTH
 
Old 03-15-2005, 08:12 AM   #4
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
Any chance you found those in PDF format? I found this one

http://www.faqs.org/docs/Linux-mini...rogramming.html(the first one)

in PDF, are there others?
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
serial port programming: Java or C? ar1 Programming 5 05-19-2005 02:55 PM
Problem of serial port programming fingerling54 Linux - Software 4 05-18-2005 03:22 PM
serial port programming!!! novice_din Programming 4 02-03-2005 08:50 PM
Serial Port Programming Question Darktyco Programming 8 03-23-2004 05:13 PM
Programming the Serial Port karans Linux - Networking 2 11-03-2003 01:54 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration