LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help Me (https://www.linuxquestions.org/questions/linux-newbie-8/help-me-804447/)

KP Udaya 04-27-2010 02:11 AM

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.

business_kid 04-27-2010 02:49 AM

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/

pixellany 04-27-2010 06:30 AM

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.

cola 04-27-2010 06:46 AM

Quote:

Originally Posted by KP Udaya (Post 3948929)
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

KP Udaya 04-28-2010 12:30 AM

Context
 
Quote:

Originally Posted by pixellany (Post 3949166)
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.

MTK358 04-28-2010 07:03 AM

We already told you,

OpenGL has NOTHING to do with serial ports. It's just a graphics library.

pixellany 04-28-2010 07:16 AM

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.

business_kid 04-29-2010 02:48 AM

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.

Aquarius_Girl 04-29-2010 02:57 AM

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


All times are GMT -5. The time now is 10:57 PM.