LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 03: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, 03:49 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,796

Rep: Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754
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, 07:30 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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, 07:46 AM   #4
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
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, 01: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, 08:03 AM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

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

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

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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, 03:48 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,796

Rep: Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754
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, 03:57 AM   #9
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,674
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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




All times are GMT -5. The time now is 12:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration