LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-27-2010, 02:11 AM   #1
KP Udaya
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Rep: Reputation: 0
Help Me


Hai Everybody there,

Please tell me how to access serialport(RS232) data using OpenGL.
Heard about SDL(Simple DirectMedia Layer),but didn't get how to use SDL and OpenGL to access RS232 data.

thankyou in advance.
 
Old 04-27-2010, 02:49 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
There's a typo in your question. There must be - rs232 is a serial protocol, but SDL and OpenGl are libraries for displaying video. The 2 don't mix. This site is useful

http://www.tomshardware.net/
 
Old 04-27-2010, 06:30 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
KP;
Welcome to LQ!!

Please give us some context for your question----If you describe the overall problem you are trying to solve, then it will help us interpret the details.
 
Old 04-27-2010, 06:46 AM   #4
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
Quote:
Originally Posted by KP Udaya View Post
Hai Everybody there,

Please tell me how to access serialport(RS232) data using OpenGL.
Heard about SDL(Simple DirectMedia Layer),but didn't get how to use SDL and OpenGL to access RS232 data.

thankyou in advance.
http://www.linuxquestions.org/linux/...Ask_a_Question
 
0 members found this post helpful.
Old 04-28-2010, 12:30 AM   #5
KP Udaya
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Context

Quote:
Originally Posted by pixellany View Post
KP;
Welcome to LQ!!

Please give us some context for your question----If you describe the overall problem you are trying to solve, then it will help us interpret the details.
Thankyou for the response,

We are building a gamecontroller for car racing.
User gives input through the steering,built using a potentiometer,that data is sent to PC via RS232 cable.
These part is done n working fine.

now,We are developing a racing game in OpenGL, we need to access the data coming through the serial port.

Is there any API in OpenGL to access the serial port data..?
Does SDL will help us..? or Do v have any Library to do so in OpenGL?

Please suggest.

ThankYou in advance.
 
Old 04-28-2010, 07:03 AM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
We already told you,

OpenGL has NOTHING to do with serial ports. It's just a graphics library.
 
Old 04-28-2010, 07:16 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Your development environment will include utilities for dealing with a serial port----I assume that it will be in one of the header files.

I am not a progammer, but if you describe your development environment, I am sure someone will know how to access serial devices. But, meanwhile, look thru your header files to see if anything looks relevant.
 
Old 04-29-2010, 02:48 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
I don't think we will write your program for you.

Data from rs232 lands somewhere. It's your job to find out where it lands, and what addresses it. Install the 'info' pages with your distro, which have a useful page on all C functions. You really need to get to know your system before you go coding for it these days.And don't put serial ports in any new soiftware; they are old, and blow easily. Most new boxes don't even have one.
 
Old 04-29-2010, 02:57 AM   #9
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by KP Udaya
we need to access the data coming through the serial port.
Hi,
See below:

http://tldp.org/HOWTO/Serial-HOWTO.html
http://www.faqs.org/docs/Linux-mini/...ing.html#ss6.3
http://www.comptechdoc.org/os/linux/...pgcserial.html
 
  


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:22 PM.

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